From 7a0305243d73edcd6d4c3870a4d3a8b232637d93 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Sat, 20 Sep 2025 13:10:20 -0700 Subject: Turn on security --- roseh.moe.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'roseh.moe.go') 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 } -- cgit v1.3.1