Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I've seen similar questions asked here but I am still unable to solve this issue. I'm running Typekit and FontAwesome (from CDN) and I get the following error

XMLHttpRequest cannot load http://resource.com/example/example. Origin http://mydomain.com is not allowed by Access-Control-Allow-Origin. 

Now, the typekit font and fontawesome css stylesheet are loading perfectly fine, so I'm not sure why the error :\

I have already tried to setup CORS through .htaccess but even then I still get the error. Does anyone have a recommendation for this problem?

This is happening in both, my local and production server.

share|improve this question
2  
In Firefox or all browsers? Firefox is REALLY weird about cross-domain font requests in ways that other browsers are not. It's very annoying. –  Jeff Atwood Sep 5 '13 at 22:06
    
I'm actually using Chrome. I've tried disabling web security but it didn't make a difference. –  cballenar Sep 21 '13 at 11:33
add comment

1 Answer

It seems to be a browser problem. Modern browsers blocks cross domain requests.

Try to use Google Chrome with args.

On Windows: --disable-web-security

On Mac: -disable-web-security

share|improve this answer
    
Hmmm, even with that I'm still seeing the error. I think I'll just ignore it for now. It seems to be an issue in their servers so maybe I need to get in touch with Typekit about it. Thanks! –  cballenar Sep 21 '13 at 11:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.