font_assets icon indicating copy to clipboard operation
font_assets copied to clipboard

Can't see ACCESS-CONTROL in headers

Open ManuelFrigerio opened this issue 10 years ago • 3 comments

I followed your example but I can't manage to see these headers:

Access-Control-Allow-Origin: http://www.codeschool.com
Access-Control-Allow-Methods: GET
Access-Control-Allow-Headers: x-requested-with
Access-Control-Max-Age: 3628800

I'm using Rails 4.1, Phusion Passenger an deploying on Heroku. I precompile assets locally, if that counts.

Once this work I want to use CloudFront as CDN.

Can you please advice?

Thanks

ManuelFrigerio avatar Sep 17 '15 16:09 ManuelFrigerio

I'm seeing the same thing. Investigating.

edlebert avatar Oct 11 '15 19:10 edlebert

The font assets must be served by the rails process for this gem to work (because Rails injects those headers into the response). It's possible your static assets are being served by phusion passenger outside of the rails stack.

ericallam avatar Oct 14 '15 13:10 ericallam

Are you saying that this gem doesn't work with Phusion Passenger?

ManuelFrigerio avatar Oct 15 '15 09:10 ManuelFrigerio