You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 12, 2020. It is now read-only.
For the life of me, I cannot get rid of this error: XMLHttpRequest cannot load https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-0LF19022L82747826. The request was redirected to 'https://www.sandbox.paypal.com/hk/cgi-bin/merchantpaymentweb?cmd=_flow&SESS…e0b7e69bf0224adecfb0124e9b61f737ba21b08198ecd47ed44bac94cd6fd721232afa4155', which is disallowed for cross-origin requests that require preflight.
I've tried adding the cors package, no success.
I've tried modifying the headers on the request, no success.
I'm not sure the direction forward, any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
Hey, @nodu can you share your node/express app server configurations and what headers you are modifying? This could be related to this issue or this one
Hi @avidas, thanks for replying. OK, I'm making an ajax POST via superagent to my server http://localhost:8081/create, the server then runs the same code in devblog.paypal for the same /create action. I've taken out all header modifications as none of them seemed to work and I'm still getting the same error. Where should I add which headers? I've tried all the possible configurations several times, but must be missing the correct one!
Hi I've been trying to integrate this into my webapp. I've followed the great guide found here: https://devblog.paypal.com/building-a-web-app-with-node-js-the-paypal-sdk-part-2/
For the life of me, I cannot get rid of this error:
XMLHttpRequest cannot load https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-0LF19022L82747826. The request was redirected to 'https://www.sandbox.paypal.com/hk/cgi-bin/merchantpaymentweb?cmd=_flow&SESS…e0b7e69bf0224adecfb0124e9b61f737ba21b08198ecd47ed44bac94cd6fd721232afa4155', which is disallowed for cross-origin requests that require preflight.
I've tried adding the cors package, no success.
I've tried modifying the headers on the request, no success.
I'm not sure the direction forward, any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: