nuxt / example-auth0

A simple example that shows how to use Nuxt.js with Auth0.
https://auth0.nuxtjs.org
MIT License
722 stars 159 forks source link

CORS error occurs even though URL is set in Auth0 Dashboard #31

Closed carlHandy closed 4 years ago

carlHandy commented 6 years ago

Anybody knows how to fix this?

This question is available on Nuxt.js community (#c19)
timhanlon commented 6 years ago

Upgrade auth0-lock to 11.3. If you've already done that, your issue could be Chrome's lack of support for Access-Control-Allow-Origin on localhost. To solve that, you can add a fake domain to your /etc/hosts, or use another workaround from here: https://stackoverflow.com/questions/10883211/deadly-cors-when-http-localhost-is-the-origin

r9mp commented 6 years ago

We had the same problem. With version 11 of auth0-lock, the filed Allowed Web Origins in auth0 dashboard is now required. To pass from 10 to 11, just npm install the correct version and complete the fied. This action doesn't appear yet in the readme of this repo.