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