-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting CORS error for verification. #19
Comments
Are you trying to communicate api from client side ?? |
yeah |
I tried to implement from the server but no luck. Got this
above is my own API which eventually calls merchant API with token, amount and secret key in req.params. I extract these from req.params and call the API as:
|
Any update on this?? |
any update? |
geez, it's still an open issue |
i am getting cors error while making POST request to merchant API for verification. And when i try to use reverse proxy i.e. https://cors-anywhere.herokuapp.com , i got 403 unuathorized error
Access to XMLHttpRequest at 'https://khalti.com/api/v2/payment/verify/' 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.
while using reverse proxy
Failed to load resource: the server responded with a status of 403 (Forbidden)
The text was updated successfully, but these errors were encountered: