From 48dc1b9be0e281ec37abffc58e780c6635e818e3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 18 Mar 2024 16:54:42 -0400 Subject: [PATCH] Revert "fix: remove Secure property" This reverts commit 9e5d996f20895453737c429440acd8405cc0b249. --- account/jwt.go | 1 + 1 file changed, 1 insertion(+) diff --git a/account/jwt.go b/account/jwt.go index a330980..0ac7c1b 100644 --- a/account/jwt.go +++ b/account/jwt.go @@ -114,6 +114,7 @@ func SetAuthCookie(jc jape.Context, jwt string, apiName string) { Name: routeableApi.AuthTokenName(), Value: jwt, Expires: time.Now().Add(24 * time.Hour), + Secure: true, HttpOnly: true, Path: "/", Domain: routeableApi.Domain(),