<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
0D54z00007pLOWECA4Okta Classic EngineAuthenticationAnswered2022-07-22T21:11:39.000Z2022-07-20T16:43:15.000Z2022-07-22T21:11:39.000Z

RyanN.83801 (Customer) asked a question.

Getting CORS errors when connecting signalR to React App

/help/servlet/rtaImage?refid=0EM4z000003QcDF

When the React app starts up and log into okta, we connect the signalR hub to the frontend. However, we're getting this CORS error. As you can see, the origin is the same as the resource. We are using the Okta SPA for the front end and have a backend service handling signalR and other API endpoints using Okta. Our backend service is connected to Okta on startup like so/help/servlet/rtaImage?refid=0EM4z000003QcDo

 

Both the frontend and backend are using the same custom Okta Authorization Server/issuer id


  • Paul S. (Okta, Inc.)

    Hello @RyanN.83801 (Customer)​ Thank you for reacting out to our Community!

     

    The error seems to be indicating CORS origin is being blocked, you might want to allow CORS origin in Okta. Please see the attached doc on how to do this:

    https://developer.okta.com/docs/guides/enable-cors/main/

     

    If this does not help resolve the issue please leverage the Okta Developer forums for this type of questions and take advantage of their expertise.

    https://devforum.okta.com/

     

    Hope this helps and if this answered your question, please mark this as Best Answer!

    Expand Post
  • RyanN.83801 (Customer)

    We added both urls as trusted CORS origin in Okta but still seeing this error. Notably, this only happens when signalR connection starts. Are there any examples of Okta implemented with a signalR application?

This question is closed.
Loading
Getting CORS errors when connecting signalR to React App