Access Token CORS Error

While connecting to get Access Token with Java Script after receiving Request token, I am facing CORS error as below:
Access to XMLHttpRequest at ‘https://developer.paytmmoney.com/accounts/v2/gettoken’ from origin ‘http://localhost:4200’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Pls help me to resolve the above.

1 Like

I am also facing the same issue @PaytmMoney can you please help

It’s more of a browser limitation, doing from a server should work

Agreed. But I am trying with PayTM Money API to get Access Token “https://developer.paytmmoney.com/accounts/v2/gettoken”, whenever a request is send to this URL, it’s throwing CORS error.
I request SERVER team to provide any solution.

True.
If the server team adds CORS headers to all responses, we will be able to hit any endpoint from the browser.

CORS is not enabled for access Token.

better to use pmclient.

That also fails with cors error