Files
ftdl/app
tech 46d9f3a299 fix: set cookie secure flag based on request protocol
Fix login issue when accessing via IP address over HTTP. Previously,
the cookie secure flag was set based on NODE_ENV which caused
cookies to not be sent when accessing via HTTP in production mode.
Now it uses the actual request protocol (checking x-forwarded-proto
header or request URL).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-04 13:03:44 +08:00
..
2026-03-04 02:04:50 +08:00