dally
1
Hi all,
I have a VueJS application using Auth0 that is working fine on Chrome but doesn’t appear to work on Safari.
When logging in, it just continuously loops.
I’m using a custom domain for this project which I thought would fix this issue but it hasn’t.
I can see the following error in the console:
Fetch API cannot load https://auth-pbp-dev.boodil.com/oauth/token due to access control checks.
Does anyone know what the issue is here?
1 Like
dally
3
Add localStorage and useRefreshTokens solved it for me. I don’t know why it’s fixed it but it has.
const auth0 = await createAuth0Client({
domain: import.meta.env?.VITE_AUTH0_DOMAIN,
clientId: import.meta.env?.VITE_AUTH0_CLIENTID,
cacheLocation: 'localstorage',
useRefreshTokens: true,
authorizationParams: {
redirect_uri: `${window.location.origin}/transactions`,
audience: import.meta.env?.VITE_AUTH0_AUDIENCE
}
})