Addi ng CORS

This commit is contained in:
Reginald Cherenfant Jasmin 2023-11-10 13:27:31 -05:00
parent 17df019d55
commit 45c61ee729

View File

@ -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<ISurveyProvider, SurveysProvider>();