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

No Access-Control-Allow-Origin Error #83

Open
vmetayer opened this issue Sep 10, 2014 · 2 comments
Open

No Access-Control-Allow-Origin Error #83

vmetayer opened this issue Sep 10, 2014 · 2 comments

Comments

@vmetayer
Copy link

I receive this error when loading external scripts. js and css. I tried adding the access control to my headers but still no luck
XMLHttpRequest cannot load http://fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=3.9.2. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://myapp.herokuapp.com' is therefore not allowed access.

@okko
Copy link
Collaborator

okko commented Sep 11, 2014

Browser refused to load the content because Google's server does not give out that header. This has nothing to do with the buildpack.

@iposton
Copy link

iposton commented Sep 14, 2015

This 1 year late, but I was having this problem with my wordpress-heroku app as well and it seems adding this line to the .htaccess file fixed it.

Header add Access-Control-Allow-Origin "*"

reference link http://webmasters.stackexchange.com/questions/71630/font-blocked-from-loading-by-cross-origin-resource-sharing-policy-no-access-co

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