From 88b92f2dab7c99c0015301e76b29f88453bf5e01 Mon Sep 17 00:00:00 2001 From: Imbus Date: Mon, 18 Dec 2023 17:25:26 +0100 Subject: [PATCH] Cors allow localhost --- server/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main.rs b/server/src/main.rs index 7979244..5e72109 100755 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -37,6 +37,7 @@ async fn main() -> std::io::Result<()> { HttpServer::new(move || { let cors = Cors::default() .allowed_origin("https://shitpost.se") + .allowed_origin("http://localhost:8080") .allowed_methods(vec!["GET", "POST"]) .max_age(3600);