增加跨域访问支持

This commit is contained in:
Argo-MacBookPro 2018-06-08 21:12:02 +08:00
parent d875d1bc4d
commit 0d3218dca8
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ namespace Bootstrap.Admin
{
app.UseExceptionHandler("/Home/Error");
}
app.UseCors(builder => builder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod().AllowCredentials());
app.UseStaticFiles();
app.UseAuthentication();
app.UseCacheManagerCorsHandler();