mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Keep https check
https://github.com/nextcloud/server/issues/41196 + keep https check Co-authored-by: Louis <louis@chmn.me> Signed-off-by: Gaspard d'Hautefeuille <github@dhautefeuille.eu>
This commit is contained in:
parent
85911cbab2
commit
08ff644f3c
1 changed files with 4 additions and 1 deletions
|
|
@ -106,7 +106,10 @@ class LoginController extends Controller {
|
|||
$this->session->set('clearingExecutionContexts', '1');
|
||||
$this->session->close();
|
||||
|
||||
if (!$this->request->isUserAgent([Request::USER_AGENT_CHROME, Request::USER_AGENT_ANDROID_MOBILE_CHROME])) {
|
||||
if (
|
||||
$this->request->getServerProtocol() === 'https' &&
|
||||
!$this->request->isUserAgent([Request::USER_AGENT_CHROME, Request::USER_AGENT_ANDROID_MOBILE_CHROME])
|
||||
) {
|
||||
$response->addHeader('Clear-Site-Data', '"cache", "storage"');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue