From ee8fa2b98d7346bf64652e3fdf5947431896591a Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 20 Mar 2024 17:13:31 -0400 Subject: [PATCH] refactor: dont pass a domain --- account/jwt.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/account/jwt.go b/account/jwt.go index 1a5918d..a2e7c22 100644 --- a/account/jwt.go +++ b/account/jwt.go @@ -123,7 +123,6 @@ func SetAuthCookie(jc jape.Context, jwt string, apiName string) { Secure: true, HttpOnly: true, Path: "/", - Domain: routeableApi.Domain(), }) } } @@ -170,7 +169,6 @@ func EchoAuthCookie(jc jape.Context, apiName string) { Secure: true, HttpOnly: true, Path: "/", - Domain: cookies[0].Domain, }) } } @@ -202,7 +200,7 @@ func ClearAuthCookie(jc jape.Context, apiName string) { Secure: true, HttpOnly: true, Path: "/", - Domain: routeableApi.Domain(), + // Domain: "." + routeableApi.Domain(), }) }