Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions backend/securecheckplus/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,3 +300,18 @@ def format(self, record):
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_SAVE_EVERY_REQUEST = True
SESSION_COOKIE_AGE = 60 * 60 * 24 * 30 # 30 days

# Content Security Policy
CSP_DEFAULT_SRC = ("'self'",)
CSP_IMG_SRC = (
"'self'",
"data:",
"*.interssl.com",
"www.wkoecg.at",
"*.geotrust.com",
"*.paypal.com",
"*.amazonaws.com",
"*.google-analytics.com",
"*.cloudflare.com",
"api.dicebear.com",
)