Answer the question
In order to leave comments, you need to log in
How does redirect work with headers in Laravel 5.4?
Good evening.
There is this method:
Route::get('/voice-chat', function () {
if (Auth::guest())
{
return view('home');
}
else
{
return redirect('http://localhost:8080/demos/multiparty.html')
->header('Authorization', 'Basic YWRtaW46c3VwZXJzZWNyZXQ=');
}
});
Answer the question
In order to leave comments, you need to log in
And from what the hell should the header be transferred to the redirect?
That doesn't work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question