fix(rum): send a User-Agent from the session replay asset proxy (#14935)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
This commit is contained in:
Mina Karam
2026-09-29 22:16:30 +08:00
committed by GitHub
co-authored by Claude Opus 5.5 Hengfei Yang
parent 9a17c24335
commit d3d4a15bcd
+4 -1
View File
@@ -548,7 +548,10 @@ pub async fn proxy(Path(params): Path<PathParamProxyURL>) -> impl IntoResponse {
{
return (StatusCode::BAD_REQUEST, format!("URL blocked: {e}")).into_response();
}
let client = match common::utils::ssrf_guard::build_safe_client(reqwest::Client::builder()) {
// Session replay loads the recorded page's fonts and images through here. Without a
// User-Agent, CDN firewalls such as the AWS managed `NoUserAgent_HEADER` rule answer 403.
let builder = reqwest::Client::builder().user_agent("OpenObserve");
let client = match common::utils::ssrf_guard::build_safe_client(builder) {
Ok(c) => c,
Err(e) => {
return (