F
Filament3mo 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
No description
No description
Solution:
i added this
->withMiddleware(function (Middleware $middleware): void {
$middleware->trustProxies(at: '*');
})
->withMiddleware(function (Middleware $middleware): void {
$middleware->trustProxies(at: '*');
})
...
Jump to solution
2 Replies
gh057x
gh057xOP3mo ago
May custom page
No description
Solution
gh057x
gh057x3mo ago
i added this
->withMiddleware(function (Middleware $middleware): void {
$middleware->trustProxies(at: '*');
})
->withMiddleware(function (Middleware $middleware): void {
$middleware->trustProxies(at: '*');
})

Did you find this page helpful?