XMLHttpRequest Error when calling /authorize endpoint in flutter web (cors related?)

Hi, since the app_auth flutter package doesn’t work with Flutter Web, I’m trying to directly call the /authorize endpoint. I have the app manually set to run on port 8000, and I believe I have cors configured correctly:

I have also tried manually setting window.location to the /authorize endpoint, which successfully shows the auth0 login page. When I sign in with Google, I am successfully redirected to localhost:8000 with the access_token in the url, however I need a refresh_token as well.

Any suggestions?

Hi @josh8

To be able to get the refresh token you need to include a scope of offline_access as part of your /authorize call, please see https://auth0.com/docs/secure/tokens/refresh-tokens/get-refresh-tokens

Best Regards