You get a bonus - 1 coin for daily activity. Now you have 1 coin

Error Passport+ laravel Trying to get property 'headers' of non-object [resolve]

Practice



in Laravel 8, if you use Passport, then when calling /oauth/authorize

an error occurs
ErrorException
Trying to get property 'headers' of non-object

if you simply disable VerifyCsrfToken
then you get a different error


Illuminate\Session\Middleware\StartSession::addCookieToResponse
vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:217

This error with the session and the headers happened because I had not installed

composer require laravel/ui
for Laravel's own authentication
I do need it
I only need a pure API

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone