You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix failing x-forwarded-host tests
* allow setting the manifest
* fix other test and add changeset
* fix another thing
* h4
* set it back
* replace heading with bold since CI complains
Copy file name to clipboardExpand all lines: .changeset/secure-forwarded-host-validation.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,9 @@ export default defineConfig({
25
25
26
26
The patterns support wildcards (`*` and `**`) for flexible hostname matching and can optionally specify protocol and port.
27
27
28
-
### Breaking change
28
+
Additionally, this fixes a bug where protocol validation was incorrectly formatted, causing valid `X-Forwarded-Host` headers to be rejected when `allowedDomains` was configured.
29
+
30
+
__Breaking change__
29
31
30
32
Previously, `Astro.url` would reflect the value of the `X-Forwarded-Host` header. While this header is commonly used by reverse proxies like Nginx to communicate the original host, it can be sent by any client, potentially allowing malicious actors to poison caches with incorrect URLs.
0 commit comments