CORS while getting openid-configurations

Hi there,

We’ve encountered an issue with Okta’s social login feature. Specifically, when attempting to sign in with Microsoft, we’re receiving an error in the console stating:

“Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at (Reason: CORS request did not succeed). Status code: (null).”

Our React JS application integrates with Okta using the “okta-auth-js”: “5.4.0” library, and we’re seeing this problem on Firefox and Chrome browsers in the Windows operating system. This issue has recently surfaced for some users, although it previously worked without any problems. Can you suggest a solution to resolve this problem?


Hi @maryam! Can you confirm if you can access the OIDC public metadata url directly via your browser - Authorization servers | Okta Developer. This is mine for example

Hey @sigama,

Thank you for your reply. I figured out the issue. There were some security changes that caused the issue but it has been resolved now and social logins are working fine. Thank you!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.