Answer the question
In order to leave comments, you need to log in
Why are headers not being set in laravel 5.5 response?
Hello.
In the controller described the function:
public function about()
{
return response('string')->header('HeaderOne','One');
}
public function about()
{
return (new Response('string'))->header('Header-one','one');
}
Answer the question
In order to leave comments, you need to log in
Understood.
If you use OpenServer, then the headers are not displayed. I don't know how to solve yet.
On a hosting, I use Jino, headings are deduced.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question