using http authentication in bookmarklet forces dialog confirmation, how to avoid?

Posted on 2007-11-28
Last Modified: 2013-12-07
I have created a javascript bookmarklet that uses URL-based http authentication (see code snippet).  Firefox for security reasons forces a dialog confirmation the first time the bookmarklet is called:  "You are about to log into the website...with username....".  I'd like to "automate" the bookmarklet, is there any way to avoid the dialog or auto-accept it?


Open in new window

Question by:bluegreenone
  • 2
  • 2
LVL 21

Accepted Solution

nizsmo earned 500 total points
ID: 20371397
no, this is completely up to the user, and is by design in regards to firefox, for better protection of the users in general.

Author Comment

ID: 20435136
OK, but I want to use the bookmarklet on my own browser only, is there no way I can override or workaround this if I also control the browser install?
LVL 21

Expert Comment

ID: 20435424
You can try adding the site to a list of trusted sites, but if that still doesn't work, then i doubt that it can be done.

Author Comment

ID: 20915560
AutoAuth worked as suggested, thanks.

Expert Comment

ID: 20943749
Forced accept.

Community Support Moderator

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
disclaimer when opening internet 2 39
simple javascript form validation 2 19
Else condition 9 19
If condition on Html with Asp 11 17
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question