We have 2 subdomains for a website in order to test our development before moving to production. This is our structure:
When I enter to subdomainB.mysite using http protocol (
http://subdomainB.mysite.com) the font awesome icons are not being displayed. Instead of that in the console shows up this:
Font from origin
http://subdomainB.othersubdomain.mysite.comhas been blocked from loading by Cross-Origin Resource Sharing policy: The 'Access-Control-Allow-Origin' header has a value
http://someWebService.wsthat is not equal to the supplied origin. Origin
http://subdomainB.mysite.comis therefore not allowed access.
With respect to "
othersubdomain", that corresponds to another subdomain used for other applications and it shouldn't be interfering with subdomainB.
Now, if I enter the site using https (
https://subdomainB.mysite.com) the icon fonts are being displayed and nothing goes on the console, which is good.
On the other hand, when I test in our first subdomain (
subdomainA.mysite.com) either I am testing with http or https the iconfonts load fine.
We have the module CDN off in subdomainA and on in subdomainB. At first I thought this was the problem but I turned off the module in subdomainB, cleared registry and test for awhile and the problem remained the same.
Lastly, we have the font awesome library inside the core of our drupal installation so we are not calling this library from a remote location.