修改BUG:WebSocket消息处理增加授权认证

This commit is contained in:
Argo-MacBookPro 2018-06-17 17:20:16 +08:00
parent 32ceced6d9
commit 0556f77dce
1 changed files with 1 additions and 1 deletions

View File

@ -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 =>
{