aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2023-08-10 15:34:24 +0200
committerJulian Hurst <ark@mansus.space>2023-08-10 15:34:24 +0200
commitb2cd7e81e200c1331cba5cfd9fa95db0937743e8 (patch)
tree4b3d640473be64684ab0df23b00de991686b2f66
parente4001dbccbe82add95f32450e4d082133a197e8e (diff)
downloaddocspace-b2cd7e81e200c1331cba5cfd9fa95db0937743e8.tar.gz
Enable secure cookies
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 04bcf7c..f2ab0c8 100644
--- a/main.go
+++ b/main.go
@@ -419,7 +419,7 @@ func sendFlash(w http.ResponseWriter, r *http.Request, name, s string) {
MaxAge: 0,
Path: "/",
// Only https on qutebrowser
- //Secure: true,
+ Secure: true,
HttpOnly: true,
SameSite: http.SameSiteStrictMode,
}
@@ -474,7 +474,7 @@ func login(w http.ResponseWriter, r *http.Request) {
Value: bStr,
MaxAge: 0,
// Only https on qutebrowser
- //Secure: true,
+ Secure: true,
HttpOnly: true,
SameSite: http.SameSiteStrictMode,
}