WebFaction
Community site: login faq

I'm serving the django with apache and the static with nginx.

my css file at static.mydomain.com/css/base.css has:

@font-face {
    font-family: 'ModernPictogramsNormal';
    src: url('../fonts/modernpics-webfont.eot');
    src: url('../fonts/modernpics-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/modernpics-webfont.woff') format('woff'),
         url('../fonts/modernpics-webfont.ttf') format('truetype'),
         url('../fonts/modernpics-webfont.svg#ModernPictogramsNormal') format('svg');
    font-weight: normal;
    font-style: normal;

}

So when Internet Explorer tries to get static.mydomain.com/fonts/modernpics-webfont.woff (or any of them) I get..

"@font-face failed cross-origin request. resource access is restricted"

This works in the other browsers but not IE. I found several posts about this but none worked for me since i'm using Nginx :(

Anyone know how I can fix this?

asked 11 Mar '13, 19:36

teewuane
134
accept rate: 0%


You would have to host those files with Apache and enable CORS.

permanent link

answered 11 Mar '13, 20:44

johns
5.4k312
accept rate: 23%

I ended up just throwing them on my S3 account. Don't feel like dealing with this on webfaction right now.

(12 Mar '13, 10:36) teewuane
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×186
×125

question asked: 11 Mar '13, 19:36

question was seen: 9,488 times

last updated: 12 Mar '13, 10:36

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM