js form function conflict with PayPal button

1 reply · opened Mar 17, 2017

FfotobobMar 17, 2017

On this page http://www.ocs.fotografics.eu/wp/donate.html I have added a PayPal button.

When clicked, nothing happens.

When I look in the browser's error consoling I see:
XMLHttpRequest cannot load https://www.paypal.com/cgi-bin/webscr. Cross-origin redirection denied by Cross-Origin Resource Sharing policy.

I worked with my provider to edit .htaccess as such: root@web4 [/home/fotogreu/public_html]# grep Header .htaccess
Header set Access-Control-Allow-Origin "*"

The response header is:
Name Value Delim
Status: HTTP/1.1 200 OK
Last-Modified: Thu, 16 Mar 2017 07:39:25 GMT
Content-Type: text/html
Content-Length: 10658
Content-Encoding: gzip
Vary: Accept-Encoding
Date: Fri, 17 Mar 2017 08:30:19 GMT
Accept-Ranges: bytes
Server: LiteSpeed
Access-Control-Allow-Origin: *
Connection: close

So, since it still did not work, I disabled all form js in the functions.js and the button worked.

At this point, I believe there is something in function.js that is causing the Cross-origin redirection denied by "Cross-Origin Resource Sharing policy" error.

Please help. Thank you.

FfotobobMar 18, 2017

Never min - I fixed it by removing the contact widget class

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard