'true', 'Access-Control-Max-Age' => 1800, 'Access-Control-Allow-Methods' => 'GET, POST, PATCH, PUT, DELETE, OPTIONS', 'Access-Control-Allow-Headers' => 'Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-CSRF-TOKEN, X-Requested-With,Token,Language', ]; public function handle($request, Closure $next, ?array $header = []) { header('Access-Control-Allow-Origin: *' ); header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS'); header('Access-Control-Allow-Headers: Content-Type, Authorization,Accpet,Token,Language'); header('Access-Control-Max-Age: 86400'); header('Access-Control-Allow-Credentials: true'); return parent::handle($request, $next, $header); // TODO: Change the autogenerated stub } }