Skip to content

Commit

Permalink
Merge pull request openwebwork#2658 from drgrice1/default-cookie-secure
Browse files Browse the repository at this point in the history
Change the default value of `$CookieSecure` to 1.
  • Loading branch information
somiaj authored Jan 22, 2025
2 parents 3219060 + 7e1fa1a commit fd501c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions conf/defaults.config
Original file line number Diff line number Diff line change
Expand Up @@ -981,8 +981,7 @@ $session_management_via = "session_cookie";
$CookieSameSite = "Lax";

# Set the value of the secure cookie attribute.
# The default is 0, as 1 will not work without https.
$CookieSecure = 0;
$CookieSecure = 1;

# If $useSessionCookie is set to 1, then a "session" cookie will be used. This
# means that the cookie will be deleted when the browser session ends.
Expand Down
4 changes: 2 additions & 2 deletions conf/localOverrides.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,8 @@ $mail{feedbackRecipients} = [
#$CookieSameSite = "Lax";

# Set the value of the secure cookie attribute.
# The default is 0, as 1 will not work without https.
#$CookieSecure = 1;
# The default is 1, so if you are serving without https then set this to 0.
#$CookieSecure = 0;

# If $useSessionCookie is set to 1, then a "session" cookie will be used. This
# means that the cookie will be deleted when the browser session ends.
Expand Down

0 comments on commit fd501c8

Please sign in to comment.