Set headers on all requests
This commit is contained in:
parent
5eeb662d6f
commit
90d6fd0770
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
Reference in a new issue