<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
0D54z00007WiTLsCANOkta Classic EngineAPI Access ManagementAnswered2024-03-25T20:31:13.000Z2022-03-23T06:47:57.000Z2022-03-24T21:12:57.000Z

cntr1 (cntr1) asked a question.

CORS error with react.

Even after enabling CORS for "http://localhost:3000" I am having CORS error. By the way I am trying to use org authorization.

The error says

"Access to fetch at 'https://{oktaorg}/oauth2/v1/authorize/.well-known/openid-configuration' from origin 'http://localhost:3000' 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"


This question is closed.
Loading
CORS error with react.