httpfoundation专题

laravel报错Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::header()

在中间件中使用了 $response->header('Access-Control-Allow-Origin', '*');$response->header('Access-Control-Allow-Headers', 'Origin, Content-Type, Cookie, X-CSRF-TOKEN, Accept, Authorization, X-XSRF-TOKEN');$re