mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-04-25 04:35:50 +03:00
[PR #297] [MERGED] Fix auth cookie secure flag for HTTP in production #338
Labels
No labels
bug
enhancement
enhancement
feature
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ProxmoxVE-Local#338
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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.