title: Laravel Lumen 5.2 Cors Middleware not working
body: <p>In Laravel Lumen 5.1 i am using this in my CorsMiddleware:</p>
  
  <pre><code>public function handle($request, \Closure $next)
  {
      $response = $next($request);
      $response-&gt;header('Access-Control-Allow-Methods', 'HEAD, GET, POST, PUT, PATCH, DELETE');
      $response-&gt;header('Access-Control-Allow-Headers',  $request-&gt;header('Access-Control-Request-Headers'));
      $response-&gt;header('Access-Control-Allow-Origin', '*');
      return $response;
  }
  </code></pre>
  
  <p>But in 5.2 its not working anymore.</p>
  
  <p>How do i return the appropriate headers in the response?</p>