CORS Policy Error while calling token API programmatically
Hi,
we’re trying to fetch profile & event details via API. To establish a connection with AEP, we are using token api to generate token which return CORS policy error. Please note this error occurs only when we try to access token api programmatically. With Postman, it works.
Token API End Point : https://ims-na1.adobelogin.com/ims/exchange/jwt/
Payload : {
“client_id” : “<clientId>”,
“client_secret”:”<clientSecret>”,
“jwt_token”:”<jwtToken>”
}
Error :
Access to fetch at 'https://ims-na1.adobelogin.com/ims/exchange/jwt/' from origin '<origin>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Thanks.