- add SESSION_COOKIE_SECURE / SESSION_COOKIE_TRUSTED_URL env vars with startup validation: enabling Secure requires at least one trusted HTTPS entry URL - wire common.SessionCookieSecure into the session cookie store instead of a hardcoded Secure=false - print a startup warning when Secure session cookies are disabled - document the new settings in .env.example and docker-compose files Secure stays off by default because many deployments front new-api with plain-HTTP reverse proxies, where a hardcoded Secure default would break logins entirely; enabling it safely depends on the deployment's TLS setup, so it ships as an opt-in deployment-hardening flag.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| audit.go | Loading commit data... | |
| auth.go | Loading commit data... | |
| body_cleanup.go | Loading commit data... | |
| cache.go | Loading commit data... | |
| cors.go | Loading commit data... | |
| disable-cache.go | Loading commit data... | |
| distributor.go | Loading commit data... | |
| email-verification-rate-limit.go | Loading commit data... | |
| gzip.go | Loading commit data... | |
| header_nav.go | Loading commit data... | |
| header_nav_test.go | Loading commit data... | |
| i18n.go | Loading commit data... | |
| jimeng_adapter.go | Loading commit data... | |
| kling_adapter.go | Loading commit data... | |
| logger.go | Loading commit data... | |
| model-rate-limit.go | Loading commit data... | |
| performance.go | Loading commit data... | |
| rate-limit.go | Loading commit data... | |
| recover.go | Loading commit data... | |
| request-id.go | Loading commit data... | |
| request_body_limit.go | Loading commit data... | |
| secure_verification.go | Loading commit data... | |
| stats.go | Loading commit data... | |
| turnstile-check.go | Loading commit data... | |
| utils.go | Loading commit data... |