From 3e1e7bd8a8442f575b2cb912c1372386012fd6b6 Mon Sep 17 00:00:00 2001 From: Kevin <66999025+DAQEM@users.noreply.github.com> Date: Thu, 21 Dec 2023 00:16:37 +0100 Subject: [PATCH] Added user-images.githubusercontent.com to allowed hostnames. Added the hostname user-images.githubusercontent.com which is an official GitHub hostname to the allowed hostname list to resolve the issue where gifs larger than 71000000 pixels hosted on user-images.githubusercontent.com would fail to load because wsrv.nl doesn't allow gifs to be bigger than 71000000 pixels. Closes #1468 --- lib/helpers/parse.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/helpers/parse.js b/lib/helpers/parse.js index 6bf9fe0b6..1453f5bbd 100644 --- a/lib/helpers/parse.js +++ b/lib/helpers/parse.js @@ -84,6 +84,7 @@ export const configuredXss = new xss.FilterXSS({ 'staging-cdn.modrinth.com', 'github.com', 'raw.githubusercontent.com', + 'user-images.githubusercontent.com', 'img.shields.io', 'i.postimg.cc', 'wsrv.nl',