Using Basic Authentication in Firefox Browser

I am using firefox running from the command line in a script to take snapshots of pages. These pages have basic HTTP authentication. Using:

firefox http://user: pass@url.com 

A dialog box will appear, or authentication does not work at all.

Is there a way to make Firefox open a page without showing a dialog?

+6
source share
2 answers

Open the about:config page in firefox. Create a new Integer key (right-click-> New-> Integer): network.http.phishy-userpass-length with a value of 255 .

+6
source

For me, this makes a difference in the world by adding a slash to the end of the context root. Without a slash, a popup window opens. With a slash, it registers as expected.

http://username: password@mysite.com /login → does not work http://username: password@mysite.com /login/ → works

firefox version 19.0

+1
source

Source: https://habr.com/ru/post/1309967/


All Articles