Skip to content

Commit

Permalink
Expose the SESSION_COOKIE_NAME setting (#1418)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysyngsun authored Aug 15, 2024
1 parent c1e051d commit c143154
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,15 @@
)

CSRF_COOKIE_SECURE = get_bool("CSRF_COOKIE_SECURE", True) # noqa: FBT003
SESSION_COOKIE_DOMAIN = get_string("SESSION_COOKIE_DOMAIN", None)
CSRF_COOKIE_DOMAIN = get_string("CSRF_COOKIE_DOMAIN", None)

CSRF_HEADER_NAME = get_string("CSRF_HEADER_NAME", "HTTP_X_CSRFTOKEN")


CSRF_TRUSTED_ORIGINS = get_list_of_str("CSRF_TRUSTED_ORIGINS", [])

SESSION_COOKIE_DOMAIN = get_string("SESSION_COOKIE_DOMAIN", None)
SESSION_COOKIE_NAME = get_string("SESSION_COOKIE_NAME", "sessionid")

# enable the nplusone profiler only in debug mode
if DEBUG:
INSTALLED_APPS += ("nplusone.ext.django",)
Expand Down

0 comments on commit c143154

Please sign in to comment.