OpenApi-5p / 5paisa-js

Official NodeJS SDK for 5paisa APIs natively written in .NET
11 stars 16 forks source link

Access to XMLHttpRequest from origin 'http://localhost:3000' has been blocked by CORS policy #19

Open rajendrasp opened 3 years ago

rajendrasp commented 3 years ago

Hi,

I am getting following error on login attempt in my JS app.

Access to XMLHttpRequest at 'https://openapi.5paisa.com/VendorsAPI/Service1.svc/V4/LoginRequestMobileNewbyEmail' 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..

What do I need to do?

Thanks

siddanand commented 1 year ago

open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security --ignore-certificate-errors

use this to bipass all cors in browser