diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-28 08:34:53 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-28 09:07:31 -0600 |
| commit | ea886371e485885d88bac685aab276e36ffedb4f (patch) | |
| tree | 4771814f25b37b287008437ca10c80429c79041b /pkg/web | |
| parent | af084321226b2adbe18c8a538435feda662cbad0 (diff) | |
test: temporarily disable http and secure flags
Diffstat (limited to 'pkg/web')
| -rw-r--r-- | pkg/web/cookie/new.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkg/web/cookie/new.go b/pkg/web/cookie/new.go index 335b305..2809640 100644 --- a/pkg/web/cookie/new.go +++ b/pkg/web/cookie/new.go @@ -9,13 +9,13 @@ import ( func New(name, value string, expires time.Time) *http.Cookie { return &http.Cookie{ - Name: name, - Value: value, // TODO:: digitally sign the value - Expires: expires, - MaxAge: int(time.Until(expires).Seconds()), - Path: "/", - HttpOnly: true, - Secure: true, + Name: name, + Value: value, // TODO:: digitally sign the value + Expires: expires, + MaxAge: int(time.Until(expires).Seconds()), + Path: "/", + // HttpOnly: true, + // Secure: true, SameSite: http.SameSiteDefaultMode, Domain: env.Fetch("HOST", "localhost"), } |
