Closed
Bug 875110
Opened 12 years ago
Closed 5 years ago
Error: downloadable font: download failed (font-family...): bad URI or cross-site access not allowed
Categories
(developer.mozilla.org Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: alex_mayorga, Unassigned)
References
Details
(Whiteboard: [specification][type:bug])
What did you do?
================
1. Load https://developer.mozilla.org/en-US/
2.
3.
What happened?
==============
These errors appear in "Error Console" on Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:24.0) Gecko/20130522 Firefox/24.0 ID:20130522031027 CSet: c21ef3664c67:
Timestamp: 5/22/2013 5:04:44 PM
Error: downloadable font: download failed (font-family: "League Gothic" style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed
source: https://developer.cdn.mozilla.net/media/fonts/League_Gothic-webfont.woff
Source File: https://developer.cdn.mozilla.net/media/css/mdn-min.css?build=0880ee7
Line: 0
Source Code:
@font-face { font-family: "League Gothic"; font-style: normal; font-weight: normal; src: url("../fonts/League_Gothic-webfont.eot?") format("eot"), url("../fonts/League_Gothic-webfont.woff") format("woff"), url("../fonts/League_Gothic-webfont.ttf") format("truetype"); }
Timestamp: 5/22/2013 5:04:44 PM
Error: downloadable font: download failed (font-family: "Bebas Neue" style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed
source: https://developer.cdn.mozilla.net/media/fonts/BebasNeue-webfont.woff
Source File: https://developer.cdn.mozilla.net/media/css/mdn-min.css?build=0880ee7
Line: 0
Source Code:
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: normal; src: url("../fonts/BebasNeue-webfont.eot?") format("eot"), url("../fonts/BebasNeue-webfont.woff") format("woff"), url("../fonts/BebasNeue-webfont.ttf") format("truetype"); }
Timestamp: 5/22/2013 5:04:48 PM
Error: downloadable font: download failed (font-family: "Bebas Neue" style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed
source: https://developer.cdn.mozilla.net/media/fonts/BebasNeue-webfont.woff
Source File: https://developer.cdn.mozilla.net/media/css/mdn-min.css?build=0880ee7
Line: 0
Source Code:
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: normal; src: url("../fonts/BebasNeue-webfont.eot?") format("eot"), url("../fonts/BebasNeue-webfont.woff") format("woff"), url("../fonts/BebasNeue-webfont.ttf") format("truetype"); }
Timestamp: 5/22/2013 5:04:48 PM
Error: downloadable font: download failed (font-family: "League Gothic" style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed
source: https://developer.cdn.mozilla.net/media/fonts/League_Gothic-webfont.woff
Source File: https://developer.cdn.mozilla.net/media/css/mdn-min.css?build=0880ee7
Line: 0
Source Code:
@font-face { font-family: "League Gothic"; font-style: normal; font-weight: normal; src: url("../fonts/League_Gothic-webfont.eot?") format("eot"), url("../fonts/League_Gothic-webfont.woff") format("woff"), url("../fonts/League_Gothic-webfont.ttf") format("truetype"); }
What should have happened?
==========================
No errors should appear and the fonts should load.
Is there anything else we should know?
======================================
Initially reported on mozillaZine's Nightly thread[1] where Brian J Polidoro confirmed and pointed to "Solution: Firefox Font-Face Cross Domain Problem"[2].
1 http://forums.mozillazine.org/viewtopic.php?p=12875693#p12875693
2 http://www.unseenrevolution.com/solution-firefox-font-face-cross-domain-problem/
Comment 2•11 years ago
|
||
I just checked, the extraneous font is gone when we got rid of the old theme. This is fixed.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Comment 3•11 years ago
|
||
I'm still having this problem,tried every solution.
Comment 4•10 years ago
|
||
I am having this problem at the moment, but with "FontAwesome":
For some weeks/months (I cannot tell exactly) I have the following error
in the web console with the symptom of missing images/glyphs/font
characters on all the MDN pages.
downloadable font: download failed (font-family: "FontAwesome"
style:normal weight:normal stretch:normal src index:1): bad URI or
cross-site access not allowed
source:
https://developer.cdn.mozilla.net/media/css/libs/font-awesome/fonts/fontawesome-webfont.woff?v=4.1.0
mdn-min.css
GET
https://developer.cdn.mozilla.net/media/css/libs/font-awesome/fonts/fontawesome-webfont.ttf
[HTTP/1.1 403 Forbidden 80ms]
The error appears whenever I'm logged in or not.
The trigger factor seems to be the configuration of
network.http.sendRefererHeader=0. I browse the web with
network.http.sendRefererHeader=0 all the time, except when I want to
contribute to MDN, where the authentication and page edition presently
still require network.http.sendRefererHeader=2. But I need and read MDN
many times a day and the missing characters makes it less pleasant to
read. I'm not the only one browsing this way, so some more users like me
may be hindered, and while I can understand the use of referer for
authentication and protection against robots I'm doubtful about the
relevance of the referer wrt to web fonts.
Context: I'm using Firefox (latest stable, 34.0 at the moment) +
NoScript (latest stable) with only Mozilla domains allowed (mozilla.org,
mozilla.net, persona.org).
Updated•10 years ago
|
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Updated•10 years ago
|
Assignee: dwalsh → nobody
Comment 6•10 years ago
|
||
The error message reported in bug 1143829 suggests we could fix this by enabling CORS, is that an option?
Comment 7•10 years ago
|
||
Not really.
We enable CORS for the entire site **except** the fonts directory, because some fonts have licenses that explicitly forbid hot-linking across domains. So, the CORS logic requires that the browser send the referrer header so we can verify that the request originates from a Mozilla site and is not hot-linked from somewhere else.
https://github.com/mozilla/kuma/blob/master/etc/apache/all-servers.conf
Comment 8•10 years ago
|
||
Understood. Too bad still, that referer protection it's getting more and more annoying.
So you can close this ticket as far as I'm concerned. Thank you.
Comment 10•8 years ago
|
||
I'm experiencing this bug as well, but with the file protocol. The fonts are located in a parent directory of the HTML document.
Comment 11•8 years ago
|
||
Steve - is this a bug on developer.mozilla.org? What URL?
Flags: needinfo?(prometh)
Comment 12•8 years ago
|
||
John, no, it's occurring in the documentation for an app I'm working on.
docs/index.html
docs/docs.css
fonts/font.woff
Comment 13•8 years ago
|
||
As I'd said, it's using the file:// protocol
Comment 14•8 years ago
|
||
OK, then that is unrelated to this bug, which is specific to MDN, and your problem won't be solved by adding it here. You may want to open a new bug, if you believe this is a Firefox bug (Firefox -> Untriaged), read the CORS specification to find a solution, or ask on a site like StackOverflow.com
Flags: needinfo?(prometh)
Comment 15•8 years ago
|
||
Oops. Thank you.
To close my comments, this answers it: https://developer.mozilla.org/en-US/docs/Same-origin_policy_for_file:_URIs
Unfortunately, it is unlike Chrome and WebKit.
Comment 16•5 years ago
|
||
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 5 years ago
Resolution: --- → WONTFIX
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•