mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-04 08:09:27 +00:00
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:
co-authored by
Claude Opus 5.5
Hengfei Yang
parent
9a17c24335
commit
d3d4a15bcd
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user