Page MenuHomeMiraheze

Allow google fonts in content security policy
Open, NormalPublic


I wanted to use a font from google fonts in the common.css for a wiki. When adding it to the common.css, the font wasn't applied. Looking in the dev-tools of my browser, it listed an error stating that was blocked by the content security policy, preventing the font from being loaded.

The font-url in question:

The issue reported by google-chrome:

Refused to load the font '' because it violates the following Content Security Policy directive: "font-src 'self' data: * *".
Miraheze wiki

Event Timeline

Don't know if it's policy to create separate issues on the same topic, but the csp also has two outdated urls for discord: and have been changed to

This one I ran into while trying to use external images