mirror of
https://github.com/nextcloud/server.git
synced 2026-04-05 00:56:16 -04:00
Invalidate existing HSTS headers
This commit is contained in:
parent
f4c9d4c067
commit
be194c5b5b
1 changed files with 5 additions and 0 deletions
|
|
@ -231,6 +231,11 @@ class OC {
|
|||
header("Location: $url");
|
||||
exit();
|
||||
}
|
||||
} else {
|
||||
// Invalidate HSTS headers
|
||||
if (OC_Request::serverProtocol() === 'https') {
|
||||
header('Strict-Transport-Security: max-age=0');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue