Fix Caddy proxy: hardcode X-Forwarded-Proto to https on all routes
Deploy to LXC / deploy (push) Successful in 18s
Deploy to LXC / deploy (push) Successful in 18s
SvelteKit expects ORIGIN=https://... so all routes must send X-Forwarded-Proto: https regardless of actual connection scheme. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -78,7 +78,7 @@ Edit `/etc/caddy/Caddyfile`:
|
||||
header_up Host collection.newedge.house
|
||||
header_up X-Real-IP {remote_host}
|
||||
header_up X-Forwarded-For {remote_host}
|
||||
header_up X-Forwarded-Proto {scheme}
|
||||
header_up X-Forwarded-Proto https
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user