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.”