Open eronisko opened 3 years ago
I have exactly the same problem.
Operating system : CloudLinux v7.9.0 Laravel version : v7.30.6 Package version : v2.1
After php artisan vendor:publish --tag=lfm_view Go to resources/views/vendor/laravel-filemanager/index.blade.php Remove prop: headers: { 'Authorization': 'Bearer ' + getUrlParam('token') },
Cause this code rewrite your browser basic auth
We're having trouble using the package in a set up where there is basic auth enabled on the server.
When basic auth is disabled, LFM works fine.
Steps to reproduce:
401 Authorization Required
error:Screenshots of browser console :
Note the error comes from our nginx server, not Laravel. I've also noticed that LFM sends a
Authorization: Bearer null
header with the upload request, which might be the source of trouble.Could you point us in the right direction?