Page MenuHomeMiraheze

Allow google fonts in content security policy
Closed, ResolvedPublic

Description

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 fonts.googleapis.com was blocked by the content security policy, preventing the font from being loaded.

The font-url in question: https://fonts.googleapis.com/css2?family=Exo+2&display=swap

The issue reported by google-chrome:

Refused to load the font 'https://fonts.googleapis.com/css2?family=Exo+2&display=swap' because it violates the following Content Security Policy directive: "font-src 'self' data: *.miraheze.org *.betaheze.org fonts.gstatic.com cdn.jsdelivr.net fastly.jsdelivr.net db.onlinewebfonts.com phab.miraheze.wiki upload.wikimedia.org".
Miraheze wiki URL:falloftheempirerp.miraheze.org

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:
cdn.discordapp.com and discordapp.com have been changed to media.discordapp.net

This one I ran into while trying to use external images

Hi,

I would like to start by apologizing on the project's behalf that your task was not resolved within a reasonable time. The community has now decided via RfC to merge with WikiTide and former volunteers will be returning and new ones will likely join. An event such as this one is unlikely to occur again.

Since your task has been opened for a long time, please let us know if (1) you still need it to be done or (2) if it's a bug: if it's still occurring.

NOTE: This is a mass message and not specific to any particular task. Hi,

Since no response to the latest question has been received in a while, we must assume that this task is no longer needed and will now be closing it as Declined. (This is simply to indicate to us that the task was not done)

If you still need this task and are able to respond, please feel free to reopen this task and indicate that it is still needed and we will start working on it. I would like to apologize once again for any inconvenience caused by this task not being resolved within a reasonable time.

Reception123

I'd still like to use fonts from Google fonts on my wiki. I didn't see the previous mail before the issue was closed

Reception123 claimed this task.