1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

Merge branch 'appwrite:master' into null-failure

This commit is contained in:
gepd 2022-11-22 17:10:55 -03:00 committed by GitHub
commit a231a9853f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,7 +223,9 @@ App::init()
return $response->redirect('https://' . $request->getHostname() . $request->getURI());
}
}
if ($request->getProtocol() === 'https') {
$response->addHeader('Strict-Transport-Security', 'max-age=' . (60 * 60 * 24 * 126)); // 126 days
}