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.AddSignalRExceptionFilterHandler<SignalRHub>((client, ex) => client.SendMessageBody(ex).ConfigureAwait(false));
|
||||
services.AddResponseCompression();
|
||||
// 兼容 QQ 浏览器兼容模式
|
||||
services.AddBootstrapAdminAuthentication(configureCookies: ConfigureCookie).AddGitee(OAuthHelper.Configure).AddGitHub(OAuthHelper.Configure);
|
||||
services.AddBootstrapAdminAuthentication().AddGitee(OAuthHelper.Configure).AddGitHub(OAuthHelper.Configure);
|
||||
services.AddSwagger();
|
||||
services.AddButtonAuthorization(MenuHelper.AuthorizateButtons);
|
||||
services.AddBootstrapAdminBackgroundTask();
|
||||
|
@ -124,11 +123,5 @@ namespace Bootstrap.Admin
|
|||
app.UseSwagger(Configuration["SwaggerPathBase"].TrimEnd('/'));
|
||||
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": {
|
||||
"ba": "Data Source=.;Initial Catalog=BootstrapAdmin;User ID=sa;Password=sa"
|
||||
},
|
||||
"SupportQQBrowser": false,
|
||||
"DB": [
|
||||
{
|
||||
"Enabled": false,
|
||||
|
|
Loading…
Reference in New Issue