WEBHOOKER_ENVIRONMENT defaults to dev, silently shipping insecure prod (no Secure cookies, CORS *) #307
Reference in New Issue
Block a user
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?
From audit #303 (significant).
Default is
dev(internal/config/config.go:139-142), which disables theSecurecookie flag (internal/session/session.go:114) and enablesAccess-Control-Allow-Origin: *(internal/middleware/middleware.go:143). An operator who forgets the variable runs insecure in prod.Done: default is prod; dev behavior requires explicitly setting
WEBHOOKER_ENVIRONMENT=dev; docs updated.