Can some one please help with the above cors issue...
# talk-hydra
h
Can some one please help with the above cors issue kindly
m
Hello @hundreds-zoo-95288 can you confirm that your issue is not documented here: https://www.ory.sh/docs/hydra/debug/csrf The issue first showed up when you upgraded to the latest Ory Hydra version, is that correct? Did you check the changelog if there is any breaking changes that might have caused this?
a
@magnificent-energy-493 I have the same problem as @hundreds-zoo-95288 (upgrading to subscription didn’t help..) there is no way I can enable cors in hydra in my ory cloud project (using ory cli update command)
@magnificent-energy-493 below is a screenshot from the ory console. As you can see,
hydra_serve_public_cors_enabled
is not set. However, running
ory get oauth2-config --format yaml > oauth2-config.yaml
shows that cors enabled is set to true. (Also tried it on a newly created project - doesn’t work either)
h
@magnificent-energy-493 - The issue is there even if we only deploy 2.0.3. Have checked the changelog could not see any breaking cors changes mentioned there. Looks like cors is not working at all. I have tried setting all the cors parameter in the config file as per the documentation still does not work. Looks like cors is not getting enabled at all 😞
a
@magnificent-energy-493 I hosted ory hydra v2.0.3 in production myself now and don’t have any issues enabling cors. So I guess the issue I encountered might be very different from that of @hundreds-zoo-95288 after all
h
@acoustic-processor-1957 - Can you please let me know if you are using Ory Cloud or deploying it in container. We are using helm chart for deployment with the mentioned configuration in the chat. Is there any message that cors is enabled in the logs.
@magnificent-energy-493@high-optician-2097 - Can you please suggest as it is blocking our development. Looking forward for your help on this do you see any issue with the config mentioned please suggest.
h
Hey @hundreds-zoo-95288 please be respectful with pings. We will try to answer your questions in time
h
Thanks a lot
Apologies @high-optician-2097 @magnificent-energy-493 for sending multiple pings. Since it was blocking our development hence followed up. Now i will wait till you help with an update. Thank you for your continued support !!!
a
@hundreds-zoo-95288 I host hydra on Vultr with docker compose + traefik hub.
h
Thank you @acoustic-processor-1957 for confirming. I have tried all option. Although Ory Hydra gets deployed successfully it looks like the cors functionality is not working. The preflight request is not getting handled properly which is resulting in the actual service call failure with cors error. It seems that something has changed on how the cors was implemented in 1.* version and 2.* version.
Kindly can some one please suggest on the issue it will be really helpful
• Hi @magnificent-energy-493 hope you are well. I have again revisited the changelog as suggested and could see one change as mentioned below in Version 2.0.0 Make CORS config hot reloadable (2d5c893)
m
Oh I see, is that what cause the issue for you when upgrading? Would you be open to write a small bit for the docs about that? That would be very helpful to others who are upgrading @hundreds-zoo-95288 🙏
h
Thank you @magnificent-energy-493 for reverting back 🙏It looks like to be the issue because the same config was working fine in 1.11.10 version. I will try and write up something in github discussion around the issue which we are facing and we will wait for an confirmation and update on the issue and the fix . Thank you again !!