Cross domain files - Problem with hosting CDN files

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 14
Joined: 18 Sep 2013, 10:49

Cross domain files - Problem with hosting CDN files

03 Nov 2015, 20:00

My website works in most browsers, but I've had users reporting issues with Chrome in that no stylesheets are loaded, making the page just look like text.

Upon debugging this in Chrome I see that Chrome throws a 404 not found error for my stylesheet http://cdn.mydomain.com/style.css

I believe this is due to a problem regarding CORS and that to resolve this we must server a header, namely Access-Control-Allow-Origin

This will basically allow a browser to understand that the web page being loaded from www.mydomain.com is ok to accept requests from cdn.mydomain.com. At the moment as I understand, some browsers have inbuilt functionality to block cross-domain requests.

Is this something Helicon admin are aware of, and is there any documentation on what settings should be set in htaccess?

Basically I want to make sure that anything hosted on my cdn.mydomain.com is ok. So, for example *.css, *.jpg, *.gif, *.js etc It's all static content on my CDN subdomain.

More info on CORS here
https://developer.mozilla.org/en-US/doc ... ntrol_CORS

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 11 guests