Using .htaccess

epiz_24303449

I have put a .htaccess header under my htdocs directory because in the .htaccess header in the root directory it said:
DO NOT EDIT THIS FILE DIRECTLY

Create a new .htaccess file in your htdocs

directory (or example.com/htdocs/ directory)

to add your own rules or override these rules.

I want to access my server files from a different domain (Cross-Origin Resource Sharing (CORS)) and I put in :Header set Access-Control-Allow-Origin “*” but I cant get access. The F12 Developer Tool comes up with the error “SEC7120: Origin file:// not found in Access-Control-Allow-Origin header.”

Hello there,

“AJAX requests from other websites (CORS). AJAX requests are only possible on the same (sub)domain.”

You may refer to this Knowledge Base article:

5 Likes

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