Remove PHP session headers

- Removed all native PHP session functions as they bypass the Symfony event system.

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
This commit is contained in:
Dillon-Brown 2020-06-03 05:34:36 +01:00
parent 897240324a
commit cfa14208f6

View file

@ -21,9 +21,6 @@ if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false
Request::setTrustedHosts([$trustedHosts]);
}
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
// Get the autoloader class
require __DIR__ . '/vendor/autoload.php';