From 4517f5b0cb6aa36b3f0f50286612f4d4587e4857 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 17 Oct 2021 10:00:04 +0200 Subject: [PATCH] Fix #2138 (Icons not showing in caliblur theme) --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index f8a8610f..11218a31 100644 --- a/cps/web.py +++ b/cps/web.py @@ -82,7 +82,7 @@ except ImportError: @app.after_request def add_security_headers(resp): - resp.headers['Content-Security-Policy'] = "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:" + resp.headers['Content-Security-Policy'] = "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:; font-src 'self' data:" if request.endpoint == "editbook.edit_book" or config.config_use_google_drive: resp.headers['Content-Security-Policy'] += " *" resp.headers['X-Content-Type-Options'] = 'nosniff'