rahulhaque / bKash-payment-gateway-web-demo

bKash payment gateway API integration documentation for web.
129 stars 44 forks source link

CORS Error #1

Closed rifat-hossain closed 4 years ago

rifat-hossain commented 4 years ago

There is a throwback on page load.

Access to XMLHttpRequest at 'https://checkout.sandbox.bka.sh/v1.2.0-beta/checkout/token/grant' from origin 'http://example.com' 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.

rahulhaque commented 4 years ago

Did you run Chrome in CORS disabled mode? Go through this section here. The APIs are designed to be called from backend. Any web browser will throw CORS exception.