Skip to content

Commit

Permalink
Add configuration to secure cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Nov 23, 2023
1 parent 572004c commit 0c793e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions waiverdb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ class Config(object):
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT = None
OTEL_EXPORTER_SERVICE_NAME = "waiverdb"

# Secure cookies
PERMANENT_SESSION_LIFETIME = 300
SESSION_COOKIE_NAME = "session"
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_SAMESITE = "Lax"


class ProductionConfig(Config):
DEBUG = False
Expand Down

0 comments on commit 0c793e6

Please sign in to comment.