laravel-filemanager
laravel-filemanager copied to clipboard
Unable to upload when behind 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.
- Operating system : Ubuntu 18.04.4
- Laravel version : v8.40.0
- Package version : v2.2.0
Steps to reproduce:
- Log into the app protected with basic auth on server (plus Laravel auth middleware)
- Open LFM pop-up via 'Browse server' button in our CKEditor integration
- Upload (any) file
- The pop-up upload window starts repeteadely asking for basic auth credentials, not accepting them
- Clicking on "Cancel" produces a
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?
I have exactly the same problem.
Operating system : CloudLinux v7.9.0 Laravel version : v7.30.6 Package version : v2.1