CORS issue with logout on nuxt

Ready to post? :mag: 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.

Hi team!

The first public beta of the Auth0 Nuxt SDK is now available for developers building web apps on the Nuxt framework!

Key Highlights

  • Idiomatic Nuxt 3 Experience: Simple, composable functions (useAuth0) that feel native to Nuxt developers, dramatically reducing time-to-first-login.
  • Advanced Security Out-of-the-Box: We’ve included support for the latest security standards from day one, including Pushed Authorization Requests (PAR), Rich Authorization Requests (RAR), and Backchannel Logout.
  • Powerful API Authentication: Seamlessly obtain tokens for backend APIs using the TokenVault integration.

Resources

Here are the helpful resources to explore the new Nuxt SDK and get started:

This SDK is still in Beta and we need your feedback! Please share any feedback, questions or comments on GitHub.

Thanks!
Dawid

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