Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CDN Sumo heroku addon and font assets

I'm trying to configure font-awesome for a Rails3 app hosted in Heroku and using CDN Sumo addon (which uses cloudfront CDN).

The problem is that Firefox is not loading the font assets. I think that the problem is the "Access-Control-Allow-Origin" problem in Firefox. But I can't fix it by using font_assets gem or setting CORS policy in Cloudfront (I don't have access to it because I'm using CDN Sumo addon).

Any idea?

Thanks!

like image 966
user578828 Avatar asked Jun 12 '13 08:06

user578828


1 Answers

Make sure that the Access-Control-Allow-Origin Header is set by the server that is hosting your fonts.

You can configure your origin server, if you need to change it, through the CDN Sumo dashboard.

CDN Sumo does not support custom CORS policies at this time.

For reference, these links might be useful:

Setting CORS for rails apps

Firefox and CORS

Heroku / CDN / fonts

like image 52
mmay Avatar answered Sep 28 '22 08:09

mmay