<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
0D54z00009xPIwACAWOkta Classic EngineSingle Sign-OnAnswered2024-01-12T17:59:43.000Z2024-01-11T23:05:59.000Z2024-01-12T17:59:43.000Z

PraveenG.85106 (Customer) asked a question.

blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header

Hi,

 

We are seeing below CORS error every 1 hour.

We verified that the CORS policy is set correctly in Okta (Security->API->TrustedOrigin) for our client domain.

 

Access to XMLHttpRequest at 'https://companyname-devciam.oktapreview.com/oauth2/default/v1/authorize?client_id=&redirect_uri=https%3A%2F%2Flocalhost%3A portnumber %2F&response_type=code&scope=openid%20profile%20email&code_challenge= &code_challenge_method=S256&state=OpenIdConnect.AuthenticationProperties &x-client-SKU=ID_NET461&x-client-ver=5.3.0.0' (redirected from 'https://localhost:portnumber/pagename.aspx') from origin 'https://localhost: portnumber 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.

 

 

 

We are using Okta.AspNet 3.2.2 in the asp.net 4.7.2 application. Application is owin layer with OktaMvcOptions (loginmode.oktahosted) for redirecting our users to Okta login page for authentication. After successful authentication users redirect back to the application and continue working.

After an hour the user’s screen freezes and user has to click the refresh button on the browser. We are using Chrome Browser Version 120.

 

We tried cleaning browser cache/cookies and still same issue.

 

Please suggest any solution or workaround. or let me know if you need more information


This question is closed.
Loading
blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header