Skip to content

Commit c2f0d0a

Browse files
committed
fmt
1 parent 9d92e23 commit c2f0d0a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

quickwit/quickwit-serve/src/rest.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,13 @@ fn build_cors(cors_origins: &[String]) -> CorsLayer {
484484
if debug_mode {
485485
info!("CORS debug mode is enabled, localhost and 127.0.0.1 origins will be allowed");
486486
return CorsLayer::new()
487-
.allow_methods([Method::GET, Method::POST, Method::PUT, Method::PATCH, Method::DELETE])
487+
.allow_methods([
488+
Method::GET,
489+
Method::POST,
490+
Method::PUT,
491+
Method::PATCH,
492+
Method::DELETE,
493+
])
488494
.allow_origin(AllowOrigin::predicate(|origin, _parts| {
489495
[b"https://localhost:", b"https://127.0.0.1:"]
490496
.iter()

0 commit comments

Comments
 (0)