Compare commits

..

No commits in common. "63330d5fc03bef0fdfdf3fb12baf74e84359eba5" and "7dad7f6aaef3c160c482b7620ddbeb285e39bc4f" have entirely different histories.

View File

@ -5,16 +5,6 @@ var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddCors(setup =>
{
setup.AddDefaultPolicy(policyBuilder =>
{
policyBuilder.WithOrigins("http://www.vdk2ch.ru:4200");
});
});
//builder.Services.AddSwaggerGen();
var app = builder.Build();
@ -28,8 +18,6 @@ if (app.Environment.IsDevelopment())
//app.UseHttpsRedirection();
app.UseCors();
app.UseAuthorization();
app.MapControllers();