-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Cross-Origin Request on docs webfonts #13593
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
Comments
In addition, fonts are being loaded from |
The |
Yes I noticed that Firefox does not like cross-origin (unlike Chrome), so my approach in my last PR was to upload the fonts locally on the built |
@brson: the fix to allow webfonts consists of adding the following to # ------------------------------------------------------------------------------
# | Web fonts access |
# ------------------------------------------------------------------------------
# Allow access to web fonts from all domains.
<IfModule mod_headers.c>
<FilesMatch "\.(eot|otf|tt[cf]|woff)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule> (Only WOFF is required here.) This code snippet comes from H5BP boilerplate configuration (it is a good default for servers). |
Two selector fixes for rustdoc: - links colored in blue (#13807) was also affecting headers, which are anchored to their respective ids - the header unstyling from #13776 was being applied to all headers also Additionally, remove a stray title in the documentation. This makes the crate title of prelude appear as header instead of an inline paragraph of text (all others work normally and do not have that header tag). The design is unchanged from my previous template (e.g. [here](http://adrientetar.legtux.org/cached/rust-docs/struct.CChars.htm)), however it is now properly applied. The last fix remaining is to enable webfonts service from `static.rust-lang.org`, this is #13593. r? @alexcrichton, @brson
When I browse the Rust API docs with Firefox Nightly, the fonts aren't loaded and I have these errors on the console;
I'm using the latest Firefox Nightly (31.0a1)
The text was updated successfully, but these errors were encountered: