ror-community / ror-roadmap

Central information about what is happening at ROR and how to contribute feedback
10 stars 2 forks source link

[BUG] CORS error with fonts on ror-app staging, dev, localhost #118

Closed lizkrznarich closed 1 year ago

lizkrznarich commented 1 year ago

Describe the bug ror-app uses a stylesheet from ror-site . As of Jan 2023, ror-site hosts Atkinson Hyperlegible fonts locally https://github.com/ror-community/ror-site/pull/77 and refers to the font files by URL in the shared stylesheet. ror-app staging, dev and localhost all refer to the production ror-site env for the stylesheet and font files, and a CORS error results when attempting to fetch fonts located on ror.org from staging.ror/search, dev.ror.org/search , etc.

To Reproduce Steps to reproduce the behavior:

  1. Go to staging.ror.org/search
  2. Open dev tools Console tab
  3. CORS error is displayed and text defaults to system font

Expected behavior ror-app retrieves fonts from ror-site without error, and text is shown using Atkinson Hyperlegible font

Screenshots

Screen Shot 2023-01-04 at 3 38 24 PM
lizkrznarich commented 1 year ago

https://github.com/ror-community/ror-app/pull/143