Cross domain files - Problem with hosting CDN files
1 post
• Page 1 of 1
Cross domain files - Problem with hosting CDN files
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
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
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 11 guests