// full error message
WARNING: You are using pip version 19.2.3, however version 20.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
// run
python -m pip install --upgrade pip --user --trusted-host files.pythonhosted.org --trusted-host pypi.org
Enable CORS in .NET Core Web API
// Startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddCors(options =>
{
options
.AddPolicy("CorsPolicy", builder => builder
.WithOrigins("http://localhost:4200")
.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials());
});
}
}
public void Configure(IApplicationBuilder app, IApiVersionDescriptionProvider provider)
{
app.UseCors("CorsPolicy");
}