This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

amrut170227396
amrut170227396

I am trying to implement "Paypal Express" gateway using Onmipay but everytime I try that from my local host. I get the following error when I try $response->redirect() from the component.

Failed to load https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&useraction=commit&token=EC-65W05165BG3219423: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.

I downloaded the CORS plugin also added "Access-Control-Allow-Origin" in "Allowed Origin" and "Allowed header" but still I am getting the same error.

Any help from you will be greatly appreciated.

FilipWozniak
FilipWozniak

I wonder if you managed to solve this issue?

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.