Skip to content

Commit

Permalink
Fix wasm_audio_worklet
Browse files Browse the repository at this point in the history
  • Loading branch information
Liamolucko committed Sep 14, 2023
1 parent 89e3cd6 commit 1a5a962
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/example-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,14 @@ pub async fn test_example(

// Serve the path.
let service = ServiceBuilder::new()
// .override_response_header(
// HeaderName::from_static("cross-origin-opener-policy"),
// HeaderValue::from_static("same-origin"),
// )
// .override_response_header(
// HeaderName::from_static("cross-origin-embedder-policy"),
// HeaderValue::from_static("require-corp"),
// )
.override_response_header(
HeaderName::from_static("cross-origin-opener-policy"),
HeaderValue::from_static("same-origin"),
)
.override_response_header(
HeaderName::from_static("cross-origin-embedder-policy"),
HeaderValue::from_static("require-corp"),
)
.service(ServeDir::new(path));
let server =
hyper::Server::try_bind(&"127.0.0.1:0".parse().unwrap())?.serve(Shared::new(service));
Expand Down

0 comments on commit 1a5a962

Please sign in to comment.