Addi ng CORS
This commit is contained in:
parent
17df019d55
commit
45c61ee729
@ -33,7 +33,6 @@ builder.Services.AddCors(p => p.AddPolicy("DamageAppCorsPolicy", build => {
|
|||||||
build.WithOrigins("*").AllowAnyMethod().AllowAnyHeader().AllowAnyOrigin();
|
build.WithOrigins("*").AllowAnyMethod().AllowAnyHeader().AllowAnyOrigin();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
builder.Services.AddControllers();
|
builder.Services.AddControllers();
|
||||||
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
||||||
builder.Services.AddScoped<ISurveyProvider, SurveysProvider>();
|
builder.Services.AddScoped<ISurveyProvider, SurveysProvider>();
|
||||||
|
Loading…
Reference in New Issue
Block a user