From 45c61ee729cd1f1bfe5441932dfcc601718d5721 Mon Sep 17 00:00:00 2001 From: Reginald Cherenfant Jasmin Date: Fri, 10 Nov 2023 13:27:31 -0500 Subject: [PATCH] Addi ng CORS --- DamageAssesmentApi/DamageAssesment.Api.Surveys/Program.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/DamageAssesmentApi/DamageAssesment.Api.Surveys/Program.cs b/DamageAssesmentApi/DamageAssesment.Api.Surveys/Program.cs index 0bbba02..f7f2306 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.Surveys/Program.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.Surveys/Program.cs @@ -33,7 +33,6 @@ builder.Services.AddCors(p => p.AddPolicy("DamageAppCorsPolicy", build => { build.WithOrigins("*").AllowAnyMethod().AllowAnyHeader().AllowAnyOrigin(); })); - builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddScoped();