Commit 33ec9d2
authored
[Backmerge-v.2.18.1][OSDEV-2341] Add Host header to fix infinite facility scroll (#871)
Backmerge PR of
#870
Forward `Host` so the origin sees the same host the viewer requested.
Without it, the ALB/app would see `origin.<env>.os-hub.net` (the
internal target) and may emit absolute links (e.g., pagination URLs)
pointing to `origin.*`, causing the next requests to bypass CloudFront
and fail.
Passing `Host` preserves the original CDN host in origin logic and
generated URLs, keeping subsequent calls on the CDN path.1 parent dfc12cf commit 33ec9d2
2 files changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
217 | 222 | | |
218 | 223 | | |
219 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
6 | 22 | | |
7 | 23 | | |
8 | 24 | | |
| |||
0 commit comments