diff --git a/lib/csp.js b/lib/csp.js index dc3706e2a..ac06722d6 100644 --- a/lib/csp.js +++ b/lib/csp.js @@ -11,7 +11,7 @@ const defaultDirectives = { fontSrc: ['\'self\''], manifestSrc: ['\'self\''], frameSrc: ['\'self\'', 'https://player.vimeo.com', 'https://www.slideshare.net/slideshow/embed_code/key/', 'https://www.youtube.com'], - imgSrc: ['*'], // we allow using arbitrary images + imgSrc: ['*', 'data:'], // we allow using arbitrary images & explicit data for mermaid scriptSrc: [ config.serverURL + '/build/', config.serverURL + '/js/', diff --git a/public/docs/release-notes.md b/public/docs/release-notes.md index 38d1307a1..213f7214d 100644 --- a/public/docs/release-notes.md +++ b/public/docs/release-notes.md @@ -4,6 +4,7 @@ ### Bugfixes - Fix a crash when cannot read user profile in Oauth +- Fix CSP Header for mermaid embedded images ([#5887](https://github.com/hedgedoc/hedgedoc/pull/5887) by [@domrim](https://github.com/domrim)) ## 1.10.0 2024-09-01