Skip to content

Commit 2431367

Browse files
jensensclaude
andcommitted
fix: add absolute_redirect off to prevent incorrect redirect URLs
nginx was converting relative redirects to absolute URLs using its internal server context (http://...:8080) instead of preserving the original scheme and host from the X-Forwarded headers. Adding absolute_redirect off ensures browsers receive proper relative redirects that resolve correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 228d89d commit 2431367

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/constructs/webmail-auth-proxy-configmap.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ http {
6161
listen 8080;
6262
server_name _;
6363
64+
# Prevent nginx from converting relative redirects to absolute URLs
65+
# This ensures redirects use the original scheme/host from X-Forwarded headers
66+
absolute_redirect off;
67+
6468
# Internal location for auth subrequest
6569
# Calls admin service's /internal/auth/user endpoint
6670
location = /_auth {

0 commit comments

Comments
 (0)