Access-Control-Allow-Origin

Username (e.g. epiz_XXX) or Website URL

epiz_25932961

(please specify the website or account you are asking about)
epiz_25932961 top-that.epizy.com

Error Message

SEC7120: [CORS] The origin ‘file://’ did not find ‘file://’ in the Access-Control-Allow-Origin response header for cross-origin resource at ‘my php file’.

(please share the FULL error message you see)

Other Information

I want to delevop the file http://top-that.epizy.com/send-ajax-data.php into an API to be accessed from a JavaScript client via Ajax/XMLHttpRequest().

(other information and details relevant to your question)
I’m doing lots of reading suggesting that I set a Access-Control-Allow-Origin header, but I don’t know where to set it.

Hello there,

CORS (Ajax requests from other websites), API (some) and Bots/External Applications (Anything that needs to access your site without JavaScript support is blocked to ensure only browsers can access your site) are blocked and are not allowed here on free hosting. The security system is responsible for blocking these things.

For more information please refer to this Knowledge Base article:

3 Likes

Thanks for pointing that out. I didn’t realize API hosting is a no-no. Guess I’ll hunt for another host.

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