增加跨域访问支持
This commit is contained in:
parent
d875d1bc4d
commit
0d3218dca8
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue