rahulhaque / bKash-payment-gateway-web-demo

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

Getting CORS error #8

Closed foyzulabrarchy closed 2 years ago

foyzulabrarchy commented 2 years ago

While using it in front end getting CORS error, in backend works fine. But is there any chance to use it in front end?

rahulhaque commented 2 years ago

@foyzulabrarchy according to bKash rules, you must call the API from backend. So, no chance to use it from frontend.

Edit: For development and test purposes, you can disable CORS in Chrome and call the APIs. See here.