Files
hledger-web-reports/.changeset/support-trusted-proxy-requests.md
eleith eeaa386853
ci/woodpecker/pr/config Pipeline was successful
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/pr/worker Pipeline was successful
ci/woodpecker/push/config Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/worker Pipeline was successful
fix(web): align trusted-proxy request handling
2026-11-04 09:27:14 -08:00

783 B

@hledger-reports/web
@hledger-reports/web
patch

Align trusted-proxy requests with framework URL and client-address handling. Both request URL origins must match normalized YAML url.app; unsafe methods retain exact Origin checks and authentication remains mandatory. Remove custom raw Host parsing and duplicated route-local IP restrictions.

Compiled Compose uses runtime protocol and address headers, which the sole upstream proxy must overwrite while preserving public Host. Remove the build-time public URL; adapter-node 6's runtime ORIGIN is not a substitute for protocol headers. Local Vite/mise development and bindings stay unchanged. Compiled browser fixtures use a test-only loopback HTTP boundary with normal browser headers, not an auth bypass or production deployment recipe.