I’m following angular tutorial for setting up okta signin widget: Okta Sign-In Widget and Angular | Okta Developer
I’m able to successfully login, but I’m not able to logout in my SPA.
After clicking logout button I have this error logged in console:
Access to fetch at 'https://{domain}.okta.com/oauth2/{server-name}/v1/revoke' from origin 'http://localhost:4200' 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.
The http://localhost:4200 url is added to API → Trusted Origins with type CORS/Redirect
What is need to correctly logout using okta?