Repository navigation
Keycloak unexpected Access-Control-Allow-Origin behavior #37196
Unanswered
LukeOnCode
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello, I am experiencing an issue with the URL
https://my_url.com/auth/realms/my_realm/. When I make a GET request with the provided session ID and security headers, with the Origin header set to a random value (e.g., Origin: origin.com), the response headers show:Access-Control-Allow-Origin: *This is not the behavior I expected. I was anticipating that the
Access-Control-Allow-Originheader would be set tomy_url.com.Upon further investigation, I have found that I am unable to configure this header to
Access-Control-Allow-Origin: my_url.comas expected.Questions:
Access-Control-Allow-Originheader is set correctly for requests originating from my_url.com?All reactions