Commit d9b6f88
committed
fix: set Vary: X-Forwarded-Prefix on the injected index.html
The index.html body varies by the X-Forwarded-Prefix header (it drives
the injected <base href> and window.__BASE_PATH__). Without a matching
Vary header, a CDN or intermediate proxy could cache one prefix's
response and serve it to users on a different prefix — a cache-poisoning
vector that breaks routing / causes a denial of service. Advertise the
header so caches key responses per-prefix.
Signed-off-by: tittu.varghese <tittu.varghese@npci.org.in>1 parent 24829c7 commit d9b6f88
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
0 commit comments