From 7bb5fff7d6926cf7447d93686ca355545b83f3d3 Mon Sep 17 00:00:00 2001 From: CJ Ratliff Date: Sat, 16 Nov 2024 23:42:04 -0500 Subject: [PATCH] Update README.md Added optional installation step to add CSP header. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 8b9e5d2..0f6a0ff 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,12 @@ First, you need to download a copy of the latest release (or clone / download th - [ ] Under Tools->Preferences->WebUI enable Use alternative WebUI. - [ ] Choose a location that points to `/path/to/qbittorrent-webui-cjratliff.com` - [ ] Restart qBittorrent or refresh your browser for changes to take effect. +- [ ] *Optional* Add content-security-policy headers under Tools->Preferences->WebUI > Add custom HTTP headers + +`content-security-policy: default-src 'self'; style-src 'self' 'unsafe-inline' raw.githubusercontent.com use.fontawesome.com; img-src 'self' theme-park.dev raw.githubusercontent.com data:; script-src 'self' 'unsafe-inline'; object-src 'self'; form-action 'self'; frame-ancestors 'self'; font-src 'self' use.fontawesome.com;` + +![optional-installation-step1](qBittorrent-webui-theme-CJRatliff.com-optional-installation-step1.jpg) + You can also change these settings via the config file. The relevant entries are: