From 85ee4589d4ee8f5e96e47d4d90c965bce2c5c482 Mon Sep 17 00:00:00 2001 From: Mitchell Marino Date: Sun, 16 Apr 2023 17:00:42 -0500 Subject: [PATCH] fix cors --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 0d922f0..1de0e75 100644 --- a/src/main.rs +++ b/src/main.rs @@ -75,6 +75,8 @@ async fn main() { // Create CORS midleware to allow the web build of the UI to work. let cors = CorsLayer::new() .allow_methods(cors::Any) + .allow_credentials(true) + .allow_headers(cors::Any) .allow_origin(cors::Any); let app = app.layer(cors);