Mangopay / mangopay2-nodejs-sdk

Node.js SDK for MANGOPAY
https://www.npmjs.com/package/mangopay2-nodejs-sdk
MIT License
51 stars 38 forks source link

Using Mangopay from localhost #349

Closed svenvreenen closed 11 months ago

svenvreenen commented 1 year ago

When using the nodejs mangopay SDK, when we try to perform any operation from a local environment (localhost), it blocks the requests to the server (CORS). Showing this error: 'from origin 'http://localhost:3000/' 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.

We already tried adding 'Access-Control-Allow-Origin': '*' to the HTTP request and it doesn't work, We also used a proxy and nothing. Finally, I tried using an extension to disable CORS in my browser and it also didn't work.

Could you help us with this?

fredericdelordm commented 11 months ago

Hi @svenvreenen, it's suppose to be a backend SDK.