CORS – Preflight Request Problems
-
Hello,
we are trying to use this plugin as a lightweight alternative for some heavyweight OpenId Connect server solution. So far, this only works partially, since we ran into problems regarding CORS preflight requests, which are send by the browser automatically.
To be precise, our problem lies with requesting the user info via a GET request to “/oauth/me”. We provide the authorization header according to specification and all is fine if we send this request directly (manually). But if we use it in our scripts, because of the cross origin, the browser first automatically sends an OPTIONS request to this resource, not containing the authentication itself (which cannot be modified I guess). The plugin then sends back a 400-error. My search for answers to this problems revealed that the solutions for people having the same problems were found on server side, where the server was told to behave differently to OPTIONS requests.
My question is: Did we oversee something? Is there a solution we have not thought about?
We would appreciate any answer we can get on this topic and thank you in advance!
The topic ‘CORS – Preflight Request Problems’ is closed to new replies.