Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Fonts access disabled between aliases due to CORS policy

Discussion in 'General Discussion' started by Yarden Sade, Dec 9, 2017.

Tags:
  1. Yarden Sade

    Yarden Sade Registered

    Joined:
    Dec 9, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    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.
     

    Attached Files:

    #1 Yarden Sade, Dec 9, 2017
    Last edited by a moderator: Dec 9, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice