Fix CSP for images from brave

This commit is contained in:
Claudio Ortolina
2026-03-08 19:47:43 +00:00
parent 59616e58b5
commit 27519fca29
2 changed files with 30 additions and 2 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ defmodule MusicLibraryWeb.Router do
"; script-src 'self'#{@dev_origins}" <>
"; style-src 'self' 'unsafe-inline' https://rsms.me#{@dev_origins}" <>
"; font-src 'self' https://rsms.me" <>
"; img-src 'self' data: https://lastfm.freetls.fastly.net" <>
"; img-src 'self' data: https://lastfm.freetls.fastly.net https://imgs.search.brave.com" <>
"; connect-src 'self'#{@dev_origins}" <>
"; frame-ancestors 'self'" <>
"; base-uri 'self'"
@@ -183,7 +183,7 @@ defmodule MusicLibraryWeb.Router do
"; script-src 'self' 'nonce-#{nonce}'" <>
"; style-src 'self' 'unsafe-inline' 'nonce-#{nonce}' https://rsms.me" <>
"; font-src 'self' data: https://rsms.me" <>
"; img-src 'self' data: 'nonce-#{nonce}' https://lastfm.freetls.fastly.net" <>
"; img-src 'self' data: 'nonce-#{nonce}' https://lastfm.freetls.fastly.net https://imgs.search.brave.com" <>
"; connect-src 'self'" <>
"; frame-ancestors 'self'" <>
"; base-uri 'self'"