Remove code from 404 response
Move cors headers and locale config to global.php