diff options
Diffstat (limited to 'roseh.moe.go')
| -rw-r--r-- | roseh.moe.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/roseh.moe.go b/roseh.moe.go index 681ab8e..5e9dd92 100644 --- a/roseh.moe.go +++ b/roseh.moe.go @@ -132,14 +132,14 @@ func attachCookie(w http.ResponseWriter) error { } sig := ed25519.Sign(secretKey, nowBytes) http.SetCookie(w, &http.Cookie{ - Name: "auth", - Value: base64.RawStdEncoding.EncodeToString(append(nowBytes, sig...)), - Path: "/notepad", - Expires: time.Now().Add(cookieExpiration), - // Secure: true, - HttpOnly: true, - SameSite: http.SameSiteStrictMode, - // Partitioned: true, + Name: "auth", + Value: base64.RawStdEncoding.EncodeToString(append(nowBytes, sig...)), + Path: "/notepad", + Expires: time.Now().Add(cookieExpiration), + Secure: true, + HttpOnly: true, + SameSite: http.SameSiteStrictMode, + Partitioned: true, }) return nil } |
