-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS for public is disabled? #1387
Comments
What endpoint are you trying to access? |
It's /userinfo |
What does the log show? |
CORS is enabled differently at those endpoints as OAuth 2.0 Clients can advertise their own origin. It's most likely something missing, I would include |
You can check if |
👋 |
I've tested more – and got it working. You just have to make sure to add |
Perfect, I'll document that in the docs. |
I've added this to the docs |
We'll actually set the defaults to something sane, as per #1400 . This will hopefully avoid unnecessary work in the future. |
Describe the bug
Seems like setting environment variable "SERVE_PUBLIC_CORS_ENABLED" makes no effect. I can not find any message in log that CORS is enabled, even though for Admin part it works with "SERVE_ADMIN_CORS_ENABLED".
Also, I see this line:
hydra/cmd/server/handler.go
Line 120 in 067e498
false
is passed)To Reproduce
Run hydra with following environment variables
Expected behavior
CORS is enabled
Version:
The text was updated successfully, but these errors were encountered: