Skip to content
Snippets Groups Projects
Commit 2882ff67 authored by danielmyren's avatar danielmyren
Browse files

Change name of cookie and add additional CSP

parent 3d8bbc3f
No related branches found
No related tags found
No related merge requests found
......@@ -7,11 +7,7 @@ class Config:
# Generate a good salt using: secrets.SystemRandom().getrandbits(128)
SECURITY_PASSWORD_SALT = os.environ.get("SECURITY_PASSWORD_SALT", "327589938147555935984237744799432734422")
SESSION_COOKIE_HTTPONLY = False
SESSION_COOKIE_NAME = "test"
SESSION_COOKIE_SAMESITE = None # test
SESSION_COOKIE_NAME = "session"
SQLALCHEMY_DATABASE_URI = 'sqlite://' # Use an in-memory db
SQLALCHEMY_ECHO = False
......@@ -51,5 +47,6 @@ class Config:
'style-src': [
'\'self\'',
'\'unsafe-inline\'',
'https://fonts.googleapis.com',
]
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment