<?php
use Symfony\Component\HttpFoundation\Request;
date_default_timezone_set('America/Santiago');
//header('X-Content-Type-Options: nosniff');
//header( 'X-Frame-Options: SAMEORIGIN' );
//header("X-XSS-Protection: 1; mode=block");
//header("X-Frame-Options: SAMEORIGIN");
//header("strict-transport-security: max-age=0");
//ini_set('session.cookie_httponly', 1);
//ini_set('session.use_only_cookies', 1);
//ini_set('session.cookie_secure', 1);
//header("Set-Cookie: key=value; path=/; domain=sipa.cl; HttpOnly; SameSite=Strict");
require __DIR__.'/../vendor/autoload.php';
if (PHP_VERSION_ID < 70000) {
include_once __DIR__.'/../var/bootstrap.php.cache';
}
$kernel = new AppKernel('dev', true);
if (PHP_VERSION_ID < 70000) {
$kernel->loadClassCache();
}
//$kernel = new AppCache($kernel);
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);