FilamentF
Filament6mo ago
gh057x

Livewire Fileupload (error 401)

I have a filament app that has custom page and uses a livewire component. it is an upload component (xlsx file). upon uploading I've encountered a 401 error. Please see attached images
image.png
image.png
Solution
i added this

->withMiddleware(function (Middleware $middleware): void {
        $middleware->trustProxies(at: '*');
    })
Was this page helpful?