Skip to content
Snippets Groups Projects
Commit be194c5b authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Invalidate existing HSTS headers

parent f4c9d4c0
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment