Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Getting a Access-Control-Allow-Origin error #79

Closed
shivaramanaiyer opened this issue Mar 30, 2015 · 3 comments
Closed

Getting a Access-Control-Allow-Origin error #79

shivaramanaiyer opened this issue Mar 30, 2015 · 3 comments
Labels

Comments

@shivaramanaiyer
Copy link

While redirecting to the sandbox account from my local server I am getting :

XMLHttpRequest cannot load https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-0JR727016T795182U. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.

Any clue as to what might be the reason for this would be really helpful.

@avidas
Copy link
Contributor

avidas commented Mar 30, 2015

Have you tried adding the header 'Access-Control-Allow-Origin' server side? e.g. http://stackoverflow.com/questions/17124600/how-can-i-add-cors-headers-to-a-static-connect-server/17124775#17124775

@shivaramanaiyer
Copy link
Author

I tried doing that, didn't seem to work. But, I now sent the info to the front end and then redirected the page there and it worked.

@ghost
Copy link

ghost commented Jul 25, 2019

Hello @shivaraman-aiyer, How did you solve this? I am facing same issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants