![]() ![]() Pass the access token (configure with the domain, client id, audience, redirectUri) in the header for the axios callĪudience: ` client_id: _APP_AUTH_CLIENTID,ĭomain: _APP_AUTH_DOMAINĬonst token = await auth0Client.getTokenSilently(/.well-known/jwks. ![]() Use OAuth2.0 for authorization, successful response in the POSTMAN test with the access token The setup below works for some endpoint but not all of endpoints, here is the one that isn't working: Keep receiving CORS error for some endpoints: 'Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.' This request was bound to fail because the server was gone, but instead of failing with “404, plus this HTML doesn’t look like JSON”, it failed with a CORS check instead.I need to receive the privileges from Server for the Access-Control-Allow-Origin: * in the response header.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |