From 6afb7cf6c80a067c5337375665a200c6482cd92c Mon Sep 17 00:00:00 2001
From: Mirko Da Corte <mirko@etherna.io>
Date: Sun, 27 Feb 2022 11:58:56 +0100
Subject: [PATCH] disable cors wildcard

---
 src/EthernaCredit/Startup.cs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/EthernaCredit/Startup.cs b/src/EthernaCredit/Startup.cs
index bd7179b..0ee33c9 100644
--- a/src/EthernaCredit/Startup.cs
+++ b/src/EthernaCredit/Startup.cs
@@ -326,8 +326,7 @@ public void Configure(IApplicationBuilder app, IApiVersionDescriptionProvider ap
                 }
                 else
                 {
-                    builder.WithOrigins("https://*.etherna.io")
-                           .SetIsOriginAllowedToAllowWildcardSubdomains()
+                    builder.WithOrigins("https://app.etherna.io")
                            .AllowAnyHeader()
                            .AllowAnyMethod()
                            .AllowCredentials();