From 0d3218dca82e55e69edd5253f84f53ec40cb3ff6 Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Fri, 8 Jun 2018 21:12:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B7=A8=E5=9F=9F=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Startup.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Bootstrap.Admin/Startup.cs b/Bootstrap.Admin/Startup.cs index 353f3af0..4af940c9 100644 --- a/Bootstrap.Admin/Startup.cs +++ b/Bootstrap.Admin/Startup.cs @@ -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();