File uploads throw a 401
We're using Coder.com for our development environments, so they're in the cloud and all the domains have https. This works great for our normal Laravel and Livewire builds, but running into some issues with file uploads now that we're trying out Filament.
The APP_URL and the ASSET_URL both point to the https:// version of the URL, and we have this in our AppServiceProvider.php:
Without that, it tries to load the file upload form with http still for some reason. But with that added it'll get to 100% for the file uploader and then throws a 401 unauthorized. The error message is just "" though, and points to line 1426 in vendor/laravel/framework/src/Illuminate/Foundation/Application.php
art storage:link
has been ran, and it seems like it would work just like every other Laravel app we've built, so not sure why it would be getting blocked.
It's a 401 but it doesn't even put anything in the laravel.log2 Replies
HTTP Requests - Laravel 12.x - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
FML haha this fixed it
pretty depressing because I just looked and this is how I fixed one of our apps a year ago lol. thank you! 😅