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.
