修改BUG:WebSocket消息处理增加授权认证
This commit is contained in:
parent
32ceced6d9
commit
0556f77dce
|
@ -82,7 +82,7 @@ namespace Bootstrap.Admin
|
||||||
app.UseCookiePolicy();
|
app.UseCookiePolicy();
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
app.UseBootstrapRoleAuthorization();
|
app.UseBootstrapRoleAuthorization();
|
||||||
app.UseWebSocketHandler();
|
app.UseWebSocketHandler(options => options.UseAuthentication = true);
|
||||||
app.UseCacheManagerCorsHandler();
|
app.UseCacheManagerCorsHandler();
|
||||||
app.UseMvc(routes =>
|
app.UseMvc(routes =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue