Skip to content

Commit

Permalink
Unnecessary using was removed. (dotnet-architecture#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bulat-Almukhametov authored Aug 29, 2022
1 parent b4e1840 commit a787c8b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/PublicApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using MediatR;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Identity;
using Microsoft.eShopWeb;
using Microsoft.eShopWeb.ApplicationCore.Constants;
Expand All @@ -30,7 +29,7 @@

builder.Services.AddEndpoints();

//Use to force loading of appsettings.json of test project
// Use to force loading of appsettings.json of test project
builder.Configuration.AddConfigurationFile("appsettings.test.json");
builder.Logging.AddConsole();

Expand Down Expand Up @@ -75,11 +74,11 @@
builder.Services.AddCors(options =>
{
options.AddPolicy(name: CORS_POLICY,
builder =>
corsPolicyBuilder =>
{
builder.WithOrigins(baseUrlConfig.WebBase.Replace("host.docker.internal", "localhost").TrimEnd('/'));
builder.AllowAnyMethod();
builder.AllowAnyHeader();
corsPolicyBuilder.WithOrigins(baseUrlConfig.WebBase.Replace("host.docker.internal", "localhost").TrimEnd('/'));
corsPolicyBuilder.AllowAnyMethod();
corsPolicyBuilder.AllowAnyHeader();
});
});

Expand Down

0 comments on commit a787c8b

Please sign in to comment.