diff options
| author | Julian Hurst <ark@mansus.space> | 2023-01-13 12:04:40 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2023-01-13 12:04:40 +0100 |
| commit | cffe35e0e3acac7dd5b83cd7cbec9bc9ff1d17e4 (patch) | |
| tree | 96814d0fa94079c63c1e9d95645a096c0cde6e37 /main.go | |
| parent | 061b0402fcee0763b2eb87e5ad2a31687f95b307 (diff) | |
| download | docspace-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.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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, } |
