How can I find the system domain?

Website URL

https://azatara.xo.je/

Error Message

Access to fetch at ‘https://errors.infinityfree.net/errors/403/’ (redirected from ‘https://azatara.xo.je/public_load.php’) from origin ‘https://azatara.xo.je’ 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.
errors.infinityfree.net/errors/403/:1 Failed to load resource: net::ERR_FAILED

Other Information

I need it so that my PHP API will work, since this issue is fixed by using the system domain.

You can’t host api services here

6 Likes

I don’t think it’s a CORS problem, because it’s all the same domain. The server is just responding with a 403 error.

I had a look at your .htaccess file, and I think I see the issue. You’re having a section that specifically allows access to PHP files with specific names, and blocks everything else. However, the file name public_load.php is not in the allowed list, so the server blocks it.

Please consider renaming the file so it matches the allowed pattern, or updating the allowed pattern so it allows this file.

6 Likes

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