aboutsummaryrefslogtreecommitdiff
path: root/instance/sqlite.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2021-10-15 15:07:38 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2021-10-15 15:07:38 +0200
commit6d71916fec58c96f1769a92e0ea8f42343497c4e (patch)
treea1087da6d6c413ce9b9de83ecafdfe2a3d4ff082 /instance/sqlite.py
parentchg: [documentation] Updated installation instructions. (diff)
downloadnewspipe-6d71916fec58c96f1769a92e0ea8f42343497c4e.tar.gz
newspipe-6d71916fec58c96f1769a92e0ea8f42343497c4e.tar.bz2
newspipe-6d71916fec58c96f1769a92e0ea8f42343497c4e.zip
chg: updated default configuration for SQLite.
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