Unnecessary using was removed. (#774)
This commit is contained in:
committed by
GitHub
parent
b4e184046f
commit
a787c8bb52
@@ -6,7 +6,6 @@ using BlazorShared.Models;
|
|||||||
using MediatR;
|
using MediatR;
|
||||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.eShopWeb;
|
using Microsoft.eShopWeb;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Constants;
|
using Microsoft.eShopWeb.ApplicationCore.Constants;
|
||||||
@@ -75,11 +74,11 @@ const string CORS_POLICY = "CorsPolicy";
|
|||||||
builder.Services.AddCors(options =>
|
builder.Services.AddCors(options =>
|
||||||
{
|
{
|
||||||
options.AddPolicy(name: CORS_POLICY,
|
options.AddPolicy(name: CORS_POLICY,
|
||||||
builder =>
|
corsPolicyBuilder =>
|
||||||
{
|
{
|
||||||
builder.WithOrigins(baseUrlConfig.WebBase.Replace("host.docker.internal", "localhost").TrimEnd('/'));
|
corsPolicyBuilder.WithOrigins(baseUrlConfig.WebBase.Replace("host.docker.internal", "localhost").TrimEnd('/'));
|
||||||
builder.AllowAnyMethod();
|
corsPolicyBuilder.AllowAnyMethod();
|
||||||
builder.AllowAnyHeader();
|
corsPolicyBuilder.AllowAnyHeader();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user