From e8dd29ec5cd40212ccccc6fa1641c8d77ca7f186 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Wed, 5 Feb 2020 13:01:37 +0000 Subject: [PATCH] Update __init__.py --- lnbits/__init__.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lnbits/__init__.py b/lnbits/__init__.py index 71f70a1d2..d2cc75321 100644 --- a/lnbits/__init__.py +++ b/lnbits/__init__.py @@ -16,7 +16,19 @@ from .settings import LNBITS_PATH, WALLET, DEFAULT_USER_WALLET_NAME, FEE_RESERVE app = Flask(__name__) - +Talisman(app, content_security_policy={ + "default-src": [ + "'self'", + "'unsafe-eval'", + "'unsafe-inline'", + "cdnjs.cloudflare.com", + "code.ionicframework.com", + "code.jquery.com", + "fonts.googleapis.com", + "fonts.gstatic.com", + "maxcdn.bootstrapcdn.com", + ] +}) # filters app.jinja_env.filters["megajson"] = megajson