Skip to content

Commit

Permalink
Merge pull request #471 from knabar/feature-cookie-settings
Browse files Browse the repository at this point in the history
Add samesite cookie settings
  • Loading branch information
knabar authored May 31, 2023
2 parents 5c371ca + 74f0680 commit 07f594d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions omeroweb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,28 @@ def leave_none_unset_int(s):
"OMERO.web."
),
],
"omero.web.csrf_cookie_samesite": [
"CSRF_COOKIE_SAMESITE",
"Lax",
str,
(
"The value of the SameSite flag on the CSRF cookie. "
"This flag prevents the cookie from being sent in cross-site "
"requests thus preventing CSRF attacks and making some methods of "
"CSRF session cookie impossible."
),
],
"omero.web.session_cookie_samesite": [
"SESSION_COOKIE_SAMESITE",
"Lax",
str,
(
"The value of the SameSite flag on the session cookie. This flag "
"prevents the cookie from being sent in cross-site requests thus "
"preventing CSRF attacks and making some methods of stealing "
"session cookie impossible."
),
],
"omero.web.logdir": ["LOGDIR", LOGDIR, str, "A path to the custom log directory."],
"omero.web.secure_proxy_ssl_header": [
"SECURE_PROXY_SSL_HEADER",
Expand Down

0 comments on commit 07f594d

Please sign in to comment.