CORS policy blocking redirct due to origin 'null'

I’m trying to implement logout functionality but getting the following error.

Access to fetch at ‘Youview-dev-401659 - Sign In’ (redirected from ‘’) from origin ‘null’ has been blocked by CORS policy: 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.

I have the same problem. Was this issue resolved?

Hi @iliab

The /login/login.html endpoint is not CORS enabled. The best solution is to redirect the user in the browser to this endpoint (or use a specific logout endpoint provided by the SAML app or OIDC app that you are using in Okta).

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