Skip to content

Commit

Permalink
Added Secure attributes in cookie (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: Deepak K <[email protected]>
  • Loading branch information
jagadeeswaran-zipstack and Deepak-Kesavan authored Mar 1, 2024
1 parent 52a6221 commit c20243f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/backend/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def get_required_setting(
SESSION_EXPIRATION_TIME_IN_SECOND = os.environ.get(
"SESSION_EXPIRATION_TIME_IN_SECOND", 3600
)
SESSION_COOKIE_SECURE=True
CSRF_COOKIE_SECURE=True

PATH_PREFIX = os.environ.get("PATH_PREFIX", "api/v1").strip("/")
API_DEPLOYMENT_PATH_PREFIX = os.environ.get(
Expand Down

0 comments on commit c20243f

Please sign in to comment.