withHeaders([ 'Content-Type' => $contentType, // 'Cache-Control' => 'public, max-age=31536000', 'Vary' => 'Accept-Encoding', 'Access-Control-Allow-Origin' => '*', 'Access-Control-Allow-Methods' => 'GET, HEAD, OPTIONS', 'Access-Control-Allow-Headers' => 'Accept, Origin, Content-Type, X-MagicAI-Chatbot, X-Livewire', // 'Access-Control-Allow-Credentials' => 'false', ]); } abort(404); } }