Skip to content

Commit 442ca48

Browse files
authored
Fix CORS on chrome by disabling block_on_origin_mismatch (#547)
This fixes an issue specific to chrome browser where default build was not serving the console UI.
1 parent 5052df1 commit 442ca48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/handlers/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ pub fn metrics_path() -> String {
338338

339339
fn cross_origin_config() -> Cors {
340340
if cfg!(feature = "debug") {
341-
Cors::permissive()
341+
Cors::permissive().block_on_origin_mismatch(false)
342342
} else {
343-
Cors::default()
343+
Cors::default().block_on_origin_mismatch(false)
344344
}
345345
}

0 commit comments

Comments
 (0)