fix: set Secure flag on session cookie in production mode (closes #5)

This commit is contained in:
clawbot committed 2026-02-08 12:05:09 -08:00
1 parent d4eae284b5
commit 185daab909
2 files changed
+71

No files matched your search

+1
View File
@@ -73,6 +73,7 @@ func New(_ fx.Lifecycle, params ServiceParams) (*Service, error) {
Path: "/",
MaxAge: sessionMaxAgeSeconds,
HttpOnly: true,
Secure: !params.Config.Debug,
SameSite: http.SameSiteLaxMode,
}