Dynamic Secure
cookie option
#7
Labels
No Label
break
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: go-chi/session#7
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
Secure
option can be dynamically derived by an application fromX-Forwarded-Proto
andreq.TLS
, so I suggest accepting afunc
argument to allow the app to decide whether the flag is set based on request.New type signature could be
bool | func
. The function would receivereq *http.Request
and return a bool.See https://github.com/go-gitea/gitea/pull/26953 for more context.
Dynamic `Secure` optionto Dynamic `Secure` cookie option