Skip to content

Commit 0bad409

Browse files
Permit profiler.firefox.com to access processed API
1 parent 3e9ae08 commit 0bad409

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

site/src/server.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,12 @@ pub async fn handle_self_profile_processed_download(
825825
.expect("valid header"),
826826
);
827827
}
828+
829+
builder.headers_mut().unwrap().insert(
830+
hyper::header::ACCESS_CONTROL_ALLOW_ORIGIN,
831+
hyper::header::HeaderValue::from_static("https://profiler.firefox.com"),
832+
);
833+
828834
builder.body(hyper::Body::from(output.data)).unwrap()
829835
}
830836

0 commit comments

Comments
 (0)