-
-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Describe the bug
I noticed that putting a trame app behind a HTTP Basic Auth link, e.g., https://user:[email protected]
, does break the trame app. It would be nice if this worked, to easily share password-protected applications via URLs/URIs.
To Reproduce
Create a .htpasswd
or similar for your Apache/Nginx webserver that serves trame. For instance, added to a Cloud provider's ingress. Then, load the trame application via a direct linke of the form https://user:[email protected]
.
The page stays blank and the browser developer console shows errors loading trame & its third party resources.
Observation
Interestingly, because browsers cache the HTTP basic auth, one can get the app to work by hitting "refresh" after the first load of the page. The browser then strips the user and password from the current URL, does not inject them into loaded resources of the trame app, and loads up successfully.
Expected behavior
If would be great if this worked on first load. A possible implementation could reload automatically or ensure that the loaded resources do not throw errors.
Screenshots
The system I see this on (NERSC Perlmutter Spin using Ranger/Kubernetes) is down today, but I'll add one later.
Platform:
Device:
- Desktop
- Mobile
OS:
- Windows (not tested)
- MacOS
- Linux
- Android
- iOS (not tested)
Browsers Affected:
- Chrome (works)
- Firefox
- Microsoft Edge (not tested)
- Safari (not tested)
- Opera (not tested)
- Brave (not tested)
- IE 11 (not tested)