Jak vyřešit problém s CORS?
-
Dobrý den, jak vyřešit problém s CORS při odesílání POST json?
Viz: Access to XMLHttpRequest at 'https://login.szn.cz/api/v1/oauth/token' from origin 'https://mujweb' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Děkuji, Míra
-
Hezký den,
toto volání má být realizováno ze serverové strany, tj. bez hlavičky Origin. (Proč? Protože obsahuje client_secret, který se nemá dostat do prohlížeče.)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Registrovat Přihlásit se