revert(#I12T0Y): 移除支持QQ浏览器相关代码
#Comment comment #I12T0Y 相关代码移动到 dev-NotSafe 分支 #Issue link #I12T0Y
This commit is contained in:
parent
96952ca152
commit
8448612f64
|
@ -61,8 +61,7 @@ namespace Bootstrap.Admin
|
||||||
services.AddSignalR().AddJsonProtocalDefault();
|
services.AddSignalR().AddJsonProtocalDefault();
|
||||||
services.AddSignalRExceptionFilterHandler<SignalRHub>((client, ex) => client.SendMessageBody(ex).ConfigureAwait(false));
|
services.AddSignalRExceptionFilterHandler<SignalRHub>((client, ex) => client.SendMessageBody(ex).ConfigureAwait(false));
|
||||||
services.AddResponseCompression();
|
services.AddResponseCompression();
|
||||||
// 兼容 QQ 浏览器兼容模式
|
services.AddBootstrapAdminAuthentication().AddGitee(OAuthHelper.Configure).AddGitHub(OAuthHelper.Configure);
|
||||||
services.AddBootstrapAdminAuthentication(configureCookies: ConfigureCookie).AddGitee(OAuthHelper.Configure).AddGitHub(OAuthHelper.Configure);
|
|
||||||
services.AddSwagger();
|
services.AddSwagger();
|
||||||
services.AddButtonAuthorization(MenuHelper.AuthorizateButtons);
|
services.AddButtonAuthorization(MenuHelper.AuthorizateButtons);
|
||||||
services.AddBootstrapAdminBackgroundTask();
|
services.AddBootstrapAdminBackgroundTask();
|
||||||
|
@ -124,11 +123,5 @@ namespace Bootstrap.Admin
|
||||||
app.UseSwagger(Configuration["SwaggerPathBase"].TrimEnd('/'));
|
app.UseSwagger(Configuration["SwaggerPathBase"].TrimEnd('/'));
|
||||||
app.UseMvcWithDefaultRoute();
|
app.UseMvcWithDefaultRoute();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ConfigureCookie(CookieAuthenticationOptions options)
|
|
||||||
{
|
|
||||||
var supportQQ = Configuration.GetValue("SupportQQBrowser", false);
|
|
||||||
if (supportQQ) options.Cookie.SameSite = SameSiteMode.None;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"ba": "Data Source=.;Initial Catalog=BootstrapAdmin;User ID=sa;Password=sa"
|
"ba": "Data Source=.;Initial Catalog=BootstrapAdmin;User ID=sa;Password=sa"
|
||||||
},
|
},
|
||||||
"SupportQQBrowser": false,
|
|
||||||
"DB": [
|
"DB": [
|
||||||
{
|
{
|
||||||
"Enabled": false,
|
"Enabled": false,
|
||||||
|
|
Loading…
Reference in New Issue