<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00009QZBXUSA5Okta Classic EngineIntegrationsAnswered2024-05-16T20:04:45.000Z2020-09-15T04:35:26.000Z2020-09-16T00:32:12.000Z

vmwpt (vmwpt) asked a question.

IDP enable CORS React App

I am getting CORS errors when I try to authenticate from a React App to a .NET service provider (SP) to an Okta identity provider (IDP). It authenticates perfectly when I just go through the .NET SP to the Okta IDP but when I incorporate the React App, it throws a CORS violation. How do I enable and configure CORS for my Okta IDP?

 

Thanks in advance!


  • Login to Okta Admin console then go to Security -> API -> Add your redirect URL under Trusted Origin to enable CORS

     

    Note: Please mark my comment as Answered if this resolve your issue.

     

    Capture

    Expand Post
  • vmwpt (vmwpt)

    Hi Vipul,

     

    I'm still getting CORS errors even though I've enabled CORS for my react app. See attached SS.

    • Unknown file type
      The file is no longer available.
This question is closed.
Loading
IDP enable CORS React App