Closed Bug 616867 Opened 14 years ago Closed 14 years ago

@font-face font not requested when http status code is 301

Categories

(Core :: Layout: Text and Fonts, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: merike, Unassigned)

Details

I'm in the middle of switching domains and my old domain is redirected to new domain. CSS on new domain is referencing font on old domain using absolute url because I haven't yet updated style rules. Investigating with Firebug shows that Firefox requests the font from old domain and receives 301 with valid font address on new domain. However no request is sent to retrieve it and thus font isn't loaded at all. Images redirected the same way are requested properly from new domain.
Font loads are subject to CORS (similar to XHR, basically), and in particular cross-domain redirects are not allowed in this context, last I checked.
Cross-origin redirects are allowed. You just have to ensure that you send the appropriate headers. I.e. add a

access-control-allow-origin: *

(or whatever origin you want to allow)

if at any point the redirect chain contains a cross-origin domain.
When sending extra header with redirect reply, Firefox indeed requests the font again from new url.
OK, sounds like things are working as they should.  ;)
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.