From dc67099d1b928cc37bf0981c22a855fdfa28cfd9 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Thu, 29 Sep 2022 18:09:19 +0800 Subject: feat: Allow any cors origin --- server/src/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src') diff --git a/server/src/Program.cs b/server/src/Program.cs index 050f504..40ef1b0 100644 --- a/server/src/Program.cs +++ b/server/src/Program.cs @@ -191,7 +191,7 @@ public static class Program app.UseCors(cors => { cors.AllowAnyMethod(); cors.AllowAnyHeader(); - cors.WithOrigins("http://localhost:3000", "http://localhost:3002", "http://localhost:3001", "http://localhost:5173"); + cors.SetIsOriginAllowed((origin) => true); cors.AllowCredentials(); }); } -- cgit v1.3