I am using to get refreshed access token by calling ‘https://.auth0.com/oauth/token url . but i am getting error
Access to XMLHttpRequest at '[https://.auth0.com/oauth/token’ (https://***auth0.com/oauth/token’) from origin ‘http://localhost’ has been blocked by CORS policy: Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response.
I checked my application setup in Auth0 and i have added http://localhost to
Allowed Callback URLs
Allowed Web Origins
But still getting above error.
I am using Ionic 4 and ionic Auth Connect plugin or Auth0 integration.
I went through other similar posts in Auth0 Community but didn’t get any clue apart from above settings which are already in place.
Please provide some insight.
P.S - I am able to test and same request using Postman and i am getting results back.