mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 10:03:32 -04:00
Merge pull request #1705 from owncloud/DisableHSTS
Invalidate existing HSTS headers
This commit is contained in:
commit
b6cbfc9cfe
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