mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-03-31 06:23:54 -04:00
[PR #297] [MERGED] Fix auth cookie secure flag for HTTP in production #325
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?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/297
Author: @michelroegl-brunner
Created: 11/10/2025
Status: ✅ Merged
Merged: 11/10/2025
Merged by: @michelroegl-brunner
Base:
main← Head:fix/auth📝 Commits (2)
86056c9Fix auth loop8c27eacFix auth cookie secure flag for HTTP in production📊 Changes
2 files changed (+10 additions, -2 deletions)
View changed files
📝
src/app/_components/AuthProvider.tsx(+6 -1)📝
src/app/api/auth/login/route.ts(+4 -1)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.