Username (e.g. epiz_XXX) or Website URL


(please specify the website or account you are asking about)

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 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:


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.