From 197dabab3037c62b2bb4fd866a54246bd180199b Mon Sep 17 00:00:00 2001 From: danjov Date: Mon, 20 Nov 2023 18:34:47 +0100 Subject: [PATCH] Disallow CORS for all origins in production --- src/GeoCop.Api/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GeoCop.Api/Program.cs b/src/GeoCop.Api/Program.cs index 7e97f62b..06582dbc 100644 --- a/src/GeoCop.Api/Program.cs +++ b/src/GeoCop.Api/Program.cs @@ -131,6 +131,9 @@ } else { + // Disallow CORS for all origins in production + app.UseCors(); + app.UseDefaultFiles(); app.UseStaticFiles(); }