-
Notifications
You must be signed in to change notification settings - Fork 550
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
Requests to load fonts with wrong URL in Chrome/Edge #479
Comments
👋 @k-risc Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
This might be related to CSP settings. I found errors in the dev console saying: We use Firefox seems to accept that., but Chrome/Edge not. Setting the After adding I'll check if I find out more in regard to if and why the browsers are handling this differently. |
Indeed it was our CSP settings that caused this. Due to an error in the configuration they were actually not |
We noticed 404 errors in the web server and application logs related to fonts. We use version 1.11.11
Expected Behavior
Fonts being requested from their correct location, e.g.
https://www.example.com/fonts/font.woff2
orhttps://www.example.com/webfonts/font.woff2
Current Behavior
We use an MVC framework (CakePHP). When being on a page for a particular controller action, e.g. https://www.example.com/entities/view/1234, the requests to the fonts are built as
https://test-www-newton.revantage.local/entities/fonts/font.woff2
Possible Solution
In Firefox (desktop), it works as expected. In Chrome (desktop and mobile/Android), as well as in Edge, these requests are generated.
Steps To Reproduce
These are particular to our web application, so I am not sure if the same happens if executed in another application under the same circumstances.
Additional Context
none
Your Environment
The text was updated successfully, but these errors were encountered: