aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2023-01-13 12:04:40 +0100
committerJulian Hurst <ark@mansus.space>2023-01-13 12:04:40 +0100
commitcffe35e0e3acac7dd5b83cd7cbec9bc9ff1d17e4 (patch)
tree96814d0fa94079c63c1e9d95645a096c0cde6e37 /main.go
parent061b0402fcee0763b2eb87e5ad2a31687f95b307 (diff)
downloaddocspace-cffe35e0e3acac7dd5b83cd7cbec9bc9ff1d17e4.tar.gz
Secure cookie only https on qutebrowser
Apparently no localhost exception, so cookies are broken.
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index b7e8e53..7681c86 100644
--- a/main.go
+++ b/main.go
@@ -264,7 +264,8 @@ func sendFlashError(w http.ResponseWriter, r *http.Request, url string, err erro
Name: "flasherror",
Value: str,
MaxAge: 0,
- Secure: true,
+ // Only https on qutebrowser
+ //Secure: true,
HttpOnly: true,
SameSite: http.SameSiteStrictMode,
}
@@ -325,7 +326,8 @@ func login(w http.ResponseWriter, r *http.Request) {
Name: "session",
Value: bStr,
MaxAge: 0,
- Secure: true,
+ // Only https on qutebrowser
+ //Secure: true,
HttpOnly: true,
SameSite: http.SameSiteStrictMode,
}