From a2696985c3fb68278504d64f28a9527b3aa942ab Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Sat, 13 Jan 2024 00:01:44 +0330 Subject: [PATCH] remove site cors --- .../Program.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/CSharp/EasyMicroservices.IdentityMicroservice.WebApi/Program.cs b/src/CSharp/EasyMicroservices.IdentityMicroservice.WebApi/Program.cs index 60d4cf6..6eccfe4 100644 --- a/src/CSharp/EasyMicroservices.IdentityMicroservice.WebApi/Program.cs +++ b/src/CSharp/EasyMicroservices.IdentityMicroservice.WebApi/Program.cs @@ -17,14 +17,7 @@ public static async Task Main(string[] args) var app = CreateBuilder(args); var build = await app.BuildWithUseCors((options) => { - AddCors(options, - "adahmsay.ir", - "appgenadmin.adahmsay.ir", - "contractgenerator.ir", - "appgenadmin.contractgenerator.ir", - "avalong.signalgo.ir", - "signalgo.ir", - "localhost"); + }, true); build.MapControllers();