Ready to post? First, try searching for your answer.
CORS issue when logging out from a frontend nuxt application.
I am making a call to auth0 like so:
await $fetch(
encodeURI(
`${config.public.auth0Url}/v2/logout?clientId=${config.public.auth0ClientId}&redirectTo=${config.public.auth0Redirect}`
)
which boils down to https://terminal-local.us.auth0.com/v2/logout?clientId=loCSA67UxCtWV5qAtISGAofxmHrPMP2A&redirectTo=http://localhost:3000 for me.
When i call this in another tab, it works. I have made sure to add this url to the allowed logouts, and allowed origins. This works fine for login, but I can’t get around the CORS for this issue .Here is a screenshot of the allowed urls.