diff options
Diffstat (limited to 'instance/sqlite.py')
-rw-r--r-- | instance/sqlite.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/instance/sqlite.py b/instance/sqlite.py index e6065ed3..cec46f48 100644 --- a/instance/sqlite.py +++ b/instance/sqlite.py @@ -17,6 +17,16 @@ SECURITY_PASSWORD_SALT = "L8gTsyrpRQEF8jNWQPyvRfv7U5kJkD" # Database SQLALCHEMY_DATABASE_URI = "sqlite:///newspipe.db" +# Security +CONTENT_SECURITY_POLICY = { + 'default-src': '\'self\'', + 'img-src': '*', + 'media-src': [ + 'youtube.com', + ], + 'script-src': '\'self\'' +} + # Crawler CRAWLING_METHOD = "default" DEFAULT_MAX_ERROR = 6 |