From b8c2bea4ae4510796ef83b68d196a544ad266eb5 Mon Sep 17 00:00:00 2001 From: paulmart-n Date: Fri, 15 Dec 2023 15:19:26 +0100 Subject: [PATCH] Content Security Policy --- init.py | 2 +- templates/index.html | 2 +- templates/plan-general.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/init.py b/init.py index 7481fd5..ada7a21 100644 --- a/init.py +++ b/init.py @@ -71,7 +71,7 @@ class Meals(db.Model): scheduler = APScheduler() app = create() -Talisman(app) +Talisman(app, content_security_policy={"default-src": ["*.paulmartin.cloud", '\'self\'']}) scheduler.init_app(app) scheduler.start() scheduler.api_enabled = True diff --git a/templates/index.html b/templates/index.html index 48ca6c7..4d3e4a5 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,7 @@ DualHub - +