I am trying to consume a payment gateway API, with react, I am using useParams()
and I get the following cors error how can I solve it?
"Access to XMLHttpRequest at 'https://khipu.com/api/2.0/payments' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status."
I tried to put a proxy in the package.json, but it did not work, I am in a development environment.