Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

FontAwsome not loading from Fastly on http://users.rust-lang.org/ #1365

Closed

Description

@SimonSapin

The Discourse forum software uses a custom font to render its icons. On http://users.rust-lang.org/ (the site itself does not support HTTPS (yet?)), this font is loaded with an inline stylesheet like (simplified):

<style>
  @font-face {
    font-family: 'FontAwesome';
    src: url('//virtual-host-discourse.global.ssl.fastly.net/assets/fontawesome-webfont-73827efc2a64a873027d05873d392cb6.eot?http://users.rust-lang.org&amp;2&v=4.3.0');
  }
</style>

With HTTPS Everywhere on Firefox, the devtools console show:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://virtual-host-discourse.global.ssl.fastly.net/assets/fontawesome-webfont-eeaf3e983ade434b10eda37dfbd6c6d7.woff?http://users.rust-lang.org&amp;2&v=4.3.0. This can be fixed by moving the resource to the same domain or enabling CORS. fontawesome-webfont-eeaf3e983ade434b10eda37dfbd6c6d7.woff
downloadable font: download failed (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:2): bad URI or cross-site access not allowed source: http://virtual-host-discourse.global.ssl.fastly.net/assets/fontawesome-webfont-eeaf3e983ade434b10eda37dfbd6c6d7.woff?http://users.rust-lang.org&amp;2&v=4.3.0

However, testing with curl -I Fastly seems to be sending Access-Control-Allow-Origin: * for both HTTP and HTTPS.

This might be another case of #49.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions