Skip to content

Commit 3895f9d

Browse files
authored
fix(gateway): extend CORS to support HEAD & OPTIONS (#19)
1 parent 4807f58 commit 3895f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iroh-gateway/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ async fn main() -> anyhow::Result<()> {
518518

519519
let cors = CorsLayer::new()
520520
.allow_headers(AllowHeaders::mirror_request())
521-
.allow_methods([Method::GET])
521+
.allow_methods([Method::GET, Method::HEAD, Method::OPTIONS])
522522
.allow_origin(AllowOrigin::mirror_request());
523523

524524
#[rustfmt::skip]

0 commit comments

Comments
 (0)