laravel-filemanager icon indicating copy to clipboard operation
laravel-filemanager copied to clipboard

Unable to upload when behind Basic Auth

Open eronisko opened this issue 3 years ago • 2 comments

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:

  1. Log into the app protected with basic auth on server (plus Laravel auth middleware)
  2. Open LFM pop-up via 'Browse server' button in our CKEditor integration
  3. Upload (any) file
  4. The pop-up upload window starts repeteadely asking for basic auth credentials, not accepting them image
  5. Clicking on "Cancel" produces a 401 Authorization Required error: image

Screenshots of browser console :

image

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?

eronisko avatar May 05 '21 09:05 eronisko

I have exactly the same problem.

Operating system : CloudLinux v7.9.0 Laravel version : v7.30.6 Package version : v2.1

Jackson90 avatar May 11 '23 06:05 Jackson90