From 0556f77dcee36905ccf4f0179c6218848939ceda Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Sun, 17 Jun 2018 17:20:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9AWebSocket?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=A4=84=E7=90=86=E5=A2=9E=E5=8A=A0=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E8=AE=A4=E8=AF=81?= 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 3e05f423..005ca12f 100644 --- a/Bootstrap.Admin/Startup.cs +++ b/Bootstrap.Admin/Startup.cs @@ -82,7 +82,7 @@ namespace Bootstrap.Admin app.UseCookiePolicy(); app.UseAuthentication(); app.UseBootstrapRoleAuthorization(); - app.UseWebSocketHandler(); + app.UseWebSocketHandler(options => options.UseAuthentication = true); app.UseCacheManagerCorsHandler(); app.UseMvc(routes => {