mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-03-31 06:23:54 -04:00
[PR #297] Fix auth cookie secure flag for HTTP in production #329
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?
Original Pull Request: https://github.com/community-scripts/ProxmoxVE-Local/pull/297
State: closed
Merged: Yes
Problem
Authentication was failing in production mode when accessing the app over HTTP. Users would log in successfully but then be redirected back to the login page.
Root Cause
The cookie flag was set based on , which meant cookies required HTTPS even when the app was accessed over HTTP. Browsers would not set or send the cookie, causing authentication to fail.
Solution
Changes
Testing