How to enable "Access-Control-Allow-Origin: * header of my website?

Hello! Welcome to the forum!

Unfortunately, that’s not possible because of this:

Infinityfree expects you to use your website as a web hosting service, not as a file hosting one. Therefore, they take measures to ensure that only web browsers are reaching your website.

What exactly are you trying to load and for what purpose? You may be able to either
a) move the files stored with Infinityfree elsewhere that is designed for your use-case or
b) move the GitHub project over to Infinityfree, provided that it’s a website and follows InfinityFree’s ToS.

If there’s anything else you want to ask, let us know!

9 Likes