Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Can't modify the htaccess file

Hi,I currently use http://gowtham.rf.gd/ domain.

I need to use Cross Origin Resource Sharing(CORS) in my webpage.

But I can't edit .htaccess file to add the below line.

Header set Access-Control-Allow-Origin : "*".

Is there anyway to do CORS without this. If not can you please enable cors :( :( :(

Comments

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

  • Yeah I get that but for that too,

    Adding this rule in my htaccess file in htdocs folder,

    Header set Access-Control-Allow-Origin : "*".

    This rule must be enabled in the parent/root htaccess file.

  • 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). "

  • edited January 28

    @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?

Sign In or Register to comment.