Skip to content

Commit 94579c7

Browse files
committed
Fix CORS: remove send_wildcard() and use expose_any_header() - send_wildcard() is not available in actix-cors 0.7 - Use expose_any_header() instead for proper CORS headers - Should fix missing Access-Control-Allow-Origin header
1 parent d26cc8e commit 94579c7

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎src-rust/src/main.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,6 @@ async fn main() -> std::io::Result<()> {
432432
.allow_any_origin()
433433
.allow_any_method()
434434
.allow_any_header()
435-
.send_wildcard()
436435
.max_age(3600);
437436

438437
let mut app = App::new()

0 commit comments

Comments
 (0)