Readthedocs.org: Access to media.readthedocs.org/fonts/fontawesome-webfont.woff2 blocked by CORS policy

Created on 8 Feb 2018  路  11Comments  路  Source: readthedocs/readthedocs.org

Details

Expected Result

Page loaded without errors.

Actual Result

(index):1 Access to Font at 'https://media.readthedocs.org/fonts/fontawesome-webfont.woff2?v=4.6.3' from origin 'http://django-compressor.readthedocs.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://django-compressor.readthedocs.io' is therefore not allowed access. The response had HTTP status code 404.

Bug Good First Issue

All 11 comments

I think the issue is here because the URL https://media.readthedocs.org/fonts/fontawesome-webfont.woff2?v=4.6.3 404s. This shouldn't actually cause any page differences as https://media.readthedocs.org/fonts/fontawesome-webfont.woff is also loaded and loads without issue.

I believe there is a CORS issue because when a successful 200 is returned the Access-Control-Allow-Origin header is added. However, because there's a 404, that header isn't there. I think simply uploading the woff2 file to the media server will resolve this.

@davidfischer I agree. Thanks.

Now someone need to put woff2 file from this release https://github.com/FortAwesome/Font-Awesome/releases/tag/v4.6.3 to this path https://media.readthedocs.org/fonts/.

@aaksarin Can i try?

@Ayukha, yeah, fill free to fix it.

@aaksarin Hi, a newcomer here. I have downloaded the fontawesome file and put the woff2 file. Please check if my way of doing things are correct. Thanks a lot

@fiennyangeln, Hi. I don't know if this is correct, i'm just posted issue and supposed fix. @RichardLitt, can you look please?

@fiennyangeln Looks like a good start! Comments will happen on that PR; when it is merged, this will be fixed. :)

Is this issue still open ? Or can i fix it ?

@fenilgandhi there is a PR #3602 already.

Ok Thanks

I believe we fixed this with a previous release. I don't see the behavior on the reported doc site anymore, so safe to close I think.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

d0ugal picture d0ugal  路  34Comments

chadwhitacre picture chadwhitacre  路  31Comments

NoralK picture NoralK  路  55Comments

jmcanterafonseca picture jmcanterafonseca  路  33Comments

ThomasWaldmann picture ThomasWaldmann  路  47Comments