Discussions
CORS error
3 months ago by Leo
Hi, our paymongo integration was working fine but now we're suddenly getting this CORS error - we didn't make any code changes. Is there anything that was changed to Paymongo API on your side? What can we do to resolve this?
Access to fetch at 'https://api.paymongo.com/v1/merchants/capabilities/payment_methods' from origin 'http://127.0.0.1:5173' 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.
Thanks!