From ae89ac31e3f0089df03d969ffa98c4b243ef0774 Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Fri, 14 Sep 2018 23:51:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9A=E8=AE=BE?= =?UTF-8?q?=E7=BD=AECookie.Path=3D"/"=E9=98=B2=E6=AD=A2=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=90=8E=E8=BF=94=E5=9B=9E=E5=89=8D=E5=8F=B0?= =?UTF-8?q?=E6=97=B6=E8=BF=98=E9=9C=80=E8=A6=81=E7=99=BB=E5=BD=95=E4=B8=80?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bootstrap.Admin/Startup.cs b/Bootstrap.Admin/Startup.cs index 08bc88e9..5595d68d 100644 --- a/Bootstrap.Admin/Startup.cs +++ b/Bootstrap.Admin/Startup.cs @@ -60,7 +60,7 @@ namespace Bootstrap.Admin options.SerializerSettings.DateFormatString = "yyyy-MM-dd HH:mm:ss"; JsonConvert.DefaultSettings = () => options.SerializerSettings; }).SetCompatibilityVersion(CompatibilityVersion.Version_2_1); - services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(); + services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options => options.Cookie.Path = "/"); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.