Providing credentials in URL for Web UI

I’ve seen other posts on these forums indicate that you can pass login credentials for the Web UI in the URL itself; e.g.:

http://<username>:<password>@localhost:8384

I’ve tried this using Firefox, Chrome and another chromium-based browser, and all it does is take me to the login screen. I also tried using “https://” instead (although I don’t think my target instance has any certificates) with identical results. The credentials appear to be completely ignored. Does this “trick” still work with Syncthing’s Web UI, or is there perhaps a newer way of performing autologin?

I’m aware that I can remove credentials from the target instance, but that’s an extreme I’d rather not go to unless there’s no other way.

Thanks in advance for any assistance.

You need to enable https://docs.syncthing.net/users/config.html#config-option-gui.sendbasicauthprompt for the URL credentials to work.

1 Like

Excellent! Thank you so much for putting me on the right track, Tomasz. :folded_hands: