Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't see ACCESS-CONTROL in headers #44

Open
ManuelFrigerio opened this issue Sep 17, 2015 · 3 comments
Open

Can't see ACCESS-CONTROL in headers #44

ManuelFrigerio opened this issue Sep 17, 2015 · 3 comments

Comments

@ManuelFrigerio
Copy link

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

@edlebert
Copy link

I'm seeing the same thing. Investigating.

@ericallam
Copy link
Owner

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.

@ManuelFrigerio
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants