You need to sign in or sign up before continuing.
In Gitlab, if URL is like https://USERNAME:PASSWORD@somedomain.com then gitlab will return 401 and ask for basic Authentication.
For this kind of URL, we simply extract username and password and send ajax request with Basic Auth.