Fonts access disabled between aliases due to CORS policy

Yarden Sade

Registered
Dec 9, 2017
1
0
0
Israel
cPanel Access Level
Root Administrator
So I have a main website, and I've attached an alias domain to it, pretty simple and done many times in the past with success.
Now, while surfing on the alias itself, It won't load the fonts due to CORS policy, "access-control-allow-origin" does not match between the actual website and the alias itself.

Now I went into the htaccess and I manually approved access to the 2 domain names, and even used * to allow all just for matter of checking if it works, but it did not.
Example of the code I put in the htaccess:

Code:
<IfModule mod_headers.c>
   Header set Access-Control-Allow-Origin http://example.net
   Header set Access-Control-Allow-Origin htp://example.com
   Header set Access-Control-Allow-Credentials true
</IfModule>
This is the main domain:
example.com
This is the Alias:
envisage.studio

I dont want to allow origin with * because it is a serious security issue, I just want both domains to functions as 1 website like alias is supposed to do.
 

Attachments

Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

Would you mind opening a support ticket using the link in my signature so we can take a closer look to see what's happening?

Thank you.