Cross-Origin Blocking

elciomsantana - pandemic . epizy . com

Error Message

Access to XMLHttpRequest at ‘http://pandemic.epizy.com/upload.php’ from origin 'http:// localhost : 53890 ’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Other Information

pandemic . epizy . com / htdocs / .htaccess

Header add Access-Control-Allow-Origin “"
Header add Access-Control-Allow-Headers “origin, x-requested-with, content-type”
Header add Access-Control-Allow-Methods “PUT, GET, POST, DELETE, OPTIONS”
Header set Access-Control-Allow-Origin "

php_value display_errors On
php_value mbstring.http_input auto
php_value date.timezone America/New_York

Using AJAX from another site to a site hosted with us is not possible because of this security system:

You can only use AJAX on the same website. If that’s not an option, please consider switching to premium hosting which does not have this restriction.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.