Hello everyone,
I'm running this code
ebayAuthToken.exchangeCodeForAccessToken('PRODUCTION', code).then((data) => { console.log(data);} ) .catch((error) => { console.log(error); });
Screenshot 2021-05-26 at 8.08.31 PM.png
and getting this error
Access to fetch at 'https://api.sandbox.ebay.com/identity/v1/oauth2/token' from origin 'https://mt3.localhost' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Screenshot 2021-05-26 at 8.04.57 PM.png
I'm using https://github.com/eBay/ebay-oauth-nodejs-client plugin.
Any idea how to fix this error. Thank you for your time.