ericallam / font_assets

Helps with serving font assets with Rails 3.1
137 stars 79 forks source link

Changes response header in development, but not production? #30

Open nozpheratu opened 10 years ago

nozpheratu commented 10 years ago

I'm using the gems defaults to allow all font origins, and I can see the response header changing on my development environment. But when I push to production where I'm loading all of my assets from cloudfront I see that the allowed origin is still being set to my origin domain ID that I had setup when I created the Cloudfront distribution?

I'm using Rails 4.1.1. I also noticed that the mime type that gets registered in my Firefox network tab for the particular font asset I'm trying to load in from Cloud front is "font-woff", instead of just "woff". Not sure if that would have an effect on anything or not...

anushamummina commented 8 years ago

I am also getting the same issues, fonts are loading in development mode but not loading in production mode. Can anyone please help me on this. Thanks in Advance.