aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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