Set headers on all requests

This commit is contained in:
Jannis Portmann 2022-01-26 17:13:00 +01:00
parent 5eeb662d6f
commit 90d6fd0770

View file

@ -18,5 +18,7 @@ if ($_SERVER['APP_DEBUG']) {
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->headers->set('X-Frame-Options', 'DENY');
$response->headers->set('X-Content-Type-Options', 'nosniff');
$response->send();
$kernel->terminate($request, $response);
$kernel->terminate($request, $response);