You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
on Ory Network, I get this error: Access to fetch at 'https://inspiring-archimedes-tjzunlod7c.projects.oryapis.com/userinfo' from origin 'https://autozoom.github.io' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
when trying to read userinfo.
I have enabled CORS for my origin with ory patch project xxxxxxxxxx--replace '/cors_public/enabled=true' --replace '/cors_public/origins=["https://autozoom.github.io/"]' (and I know this works because, before doing this, I was getting a CORS error on .well-known/openid-configuration
I have also listed my origin in the OAuth2 client, as per the attached screenshot.
Everything else works, I can do the autorization_code flow and successfully logon through my Angular app, but /userinfo gives me the error.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
on Ory Network, I get this error:
Access to fetch at 'https://inspiring-archimedes-tjzunlod7c.projects.oryapis.com/userinfo' from origin 'https://autozoom.github.io' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
when trying to read userinfo.
I have enabled CORS for my origin with
ory patch project xxxxxxxxxx--replace '/cors_public/enabled=true' --replace '/cors_public/origins=["https://autozoom.github.io/"]'
(and I know this works because, before doing this, I was getting a CORS error on .well-known/openid-configurationI have also listed my origin in the OAuth2 client, as per the attached screenshot.
Everything else works, I can do the autorization_code flow and successfully logon through my Angular app, but /userinfo gives me the error.
What am I doing wrong?
Thanks a lot in advance.
Mauro
Beta Was this translation helpful? Give feedback.
All reactions