'400 error during sign out from OKTA and React application
I setup sample react project that uses OKTA as single sign on. everything works fine except sign-out. I am getting weird CORS issue on sign-out of my sample OKTA and react example. here is the code https://github.com/okta/samples-js-react/tree/master/okta-hosted-login
I followed the suggestion here and added the hostname in Okta as a "Trusted Origins". How to resolve a CORS error on OKTA Hosted Signout.
Basically, it is working on my personal laptop, but not working same setup on my office laptop and getting errors. Any suggestions?
Access to fetch at 'https://dev-45510191.okta.com/oauth2/default/v1/revoke' from origin 'http://localhost:8080' 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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


