aboutsummaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-09-29 12:09:19 +0200
committerivarlovlie <git@ivarlovlie.no>2022-09-29 12:09:19 +0200
commitdc67099d1b928cc37bf0981c22a855fdfa28cfd9 (patch)
tree5b51e0ba35c2726d7d438d76da7959fe479b1db3 /server/src
parent3818cb49c759c1fe82c002a527d0f41e64baba14 (diff)
downloadgreatoffice-dc67099d1b928cc37bf0981c22a855fdfa28cfd9.tar.xz
greatoffice-dc67099d1b928cc37bf0981c22a855fdfa28cfd9.zip
feat: Allow any cors origin
Diffstat (limited to 'server/src')
-rw-r--r--server/src/Program.cs2
1 files changed, 1 insertions, 1 deletions
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();
});
}