From 8be97d021f5c108d208c37b05f82bef5ee3dca46 Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 20 Dec 2022 03:36:56 -0500 Subject: [PATCH] script-src 'unsafe-inline' Needed for scripts in /admin to work Signed-off-by: Tommy --- Caddyfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Caddyfile b/Caddyfile index baebae9..fc7c14c 100644 --- a/Caddyfile +++ b/Caddyfile @@ -31,7 +31,7 @@ header_up X-Real-IP {remote_host} header_down Strict-Transport-Security "max-age=63072000; includeSubdomains; preload" header_down Permissions-Policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), clipboard-read=(), display-capture=(), document-domain=(), encrypted-media=(), fullscreen=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), screen-wake-lock=(), serial=(), usb=(), sync-xhr=(), xr-spatial-tracking=()" - header_down Content-Security-Policy "default-src 'self'; object-src 'self' blob:; script-src 'self'; style-src 'self' 'unsafe-inline'; child-src 'self' https://*.duosecurity.com https://*.duofederal.com; frame-src 'self' https://*.duosecurity.com https://*.duofederal.com; frame-ancestors 'self' chrome-extension://nngceckbapebfimnlniiiahkandclblb chrome-extension://jbkfoedolllekgbhcbcoahefnbanhhlh moz-extension://*; img-src 'self' data: https://haveibeenpwned.com/ https://www.gravatar.com; connect-src 'self' https://api.pwnedpasswords.com/range/ https://2fa.directory/api/ https://app.simplelogin.io/api/ https://app.anonaddy.com/api/ https://api.fastmail.com/; block-all-mixed-content; base-uri 'none'" + header_down Content-Security-Policy "default-src 'self'; object-src 'self' blob:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; child-src 'self' https://*.duosecurity.com https://*.duofederal.com; frame-src 'self' https://*.duosecurity.com https://*.duofederal.com; frame-ancestors 'self' chrome-extension://nngceckbapebfimnlniiiahkandclblb chrome-extension://jbkfoedolllekgbhcbcoahefnbanhhlh moz-extension://*; img-src 'self' data: https://haveibeenpwned.com/ https://www.gravatar.com; connect-src 'self' https://api.pwnedpasswords.com/range/ https://2fa.directory/api/ https://app.simplelogin.io/api/ https://app.anonaddy.com/api/ https://api.fastmail.com/; block-all-mixed-content; base-uri 'none'" header_down X-XSS-Protection "0" header_down Cross-Origin-Opener-Policy same-origin header_down Cross-Origin-Resource-Policy : same-origin