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.

  1. Yarden Sade

    Yarden Sade Registered

    Dec 9, 2017
    Likes Received:
    Trophy Points:
    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:

    <IfModule mod_headers.c>
       Header set Access-Control-Allow-Origin
       Header set Access-Control-Allow-Origin htp://
       Header set Access-Control-Allow-Credentials true
    This is the main domain:
    This is the Alias:

    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 Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

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

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