Support the ongoing development of Laravel.io →
Authentication Security
Last updated 2 years ago.
0

I think you can change a bit standard auth middleware (https://github.com/laravel/laravel/blob/master/app/Http/Middle...) and check your server variable. If it's null then return response('Unauthorized.', 401) or pass the request otherwise.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

plweil plweil Joined 21 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.