Skip to content

Commit 33ec9d2

Browse files
[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

File tree

deployment/terraform/cdn.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,12 @@ resource "aws_cloudfront_distribution" "cdn" {
213213

214214
forwarded_values {
215215
query_string = true
216-
headers = ["Authorization", "X-OAR-CLIENT-KEY", "Referer"]
216+
headers = [
217+
"Host",
218+
"Authorization",
219+
"X-OAR-CLIENT-KEY",
220+
"Referer",
221+
]
217222

218223
cookies {
219224
forward = "whitelist"

doc/release/RELEASE-NOTES.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file.
33

44
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). The format is based on the `RELEASE-NOTES-TEMPLATE.md` file.
55

6+
7+
## Release 2.18.1
8+
9+
## Introduction
10+
* Product name: Open Supply Hub
11+
* Release date: January 22, 2026
12+
13+
### Bugfix
14+
[Hotfix][OSDEV-2328](https://opensupplyhub.atlassian.net/browse/OSDEV-2328) - Hotfix: Add `Host` header to fix infinite production locations scroll on the main search page.
15+
16+
### Release instructions
17+
* Ensure that the following commands are included in the `post_deployment` command:
18+
* `migrate`
19+
* `reindex_database`
20+
21+
622
## Release 2.18.0
723

824
## Introduction

0 commit comments

Comments
 (0)