aboutsummaryrefslogtreecommitdiff
path: root/instance/sqlite.py
diff options
context:
space:
mode:
Diffstat (limited to 'instance/sqlite.py')
-rw-r--r--instance/sqlite.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/instance/sqlite.py b/instance/sqlite.py
index 43cdc2af..8c2b613c 100644
--- a/instance/sqlite.py
+++ b/instance/sqlite.py
@@ -19,6 +19,19 @@ SQLALCHEMY_DATABASE_URI = "sqlite:///newspipe.db"
# Security
CONTENT_SECURITY_POLICY = {
+ 'default-src': '\'self\'',
+ 'img-src': '* data:',
+ 'media-src': [
+ 'youtube.com',
+ ],
+ 'script-src': [
+ '\'self\'',
+ '\'unsafe-inline\'',
+ ],
+ 'style-src': [
+ '\'self\'',
+ '\'unsafe-inline\'',
+ ]
}
# Crawler
bgstack15