summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-28 08:34:53 -0600
committermo khan <mo@mokhan.ca>2025-04-28 09:07:31 -0600
commitea886371e485885d88bac685aab276e36ffedb4f (patch)
tree4771814f25b37b287008437ca10c80429c79041b /pkg
parentaf084321226b2adbe18c8a538435feda662cbad0 (diff)
test: temporarily disable http and secure flags
Diffstat (limited to 'pkg')
-rw-r--r--pkg/web/cookie/new.go14
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"),
}