It’s not possible to edit the .htaccess in the root folder of your account, however you can add new rules or override existing ones by creating a new .htaccess file in a htdocs folder and add your lines to it.
This rule must be enabled in the parent/root htaccess file.
What do you mean by that? Rules must be allowed in the main server configuration to use it, and it’s not possible to set or override those rules through .htaccess.
why i am getting this error about CORS:-
" Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://infinityfree.net/errors/403. (Reason: CORS header Access-Control-Allow-Origin missing). "
@MRokerya007 said:
why i am getting this error about CORS:-
" Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://infinityfree.net/errors/403. (Reason: CORS header Access-Control-Allow-Origin missing). "
Did you read the two year old messages before you dug up this ancient topic?