Solved

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

Posted on 2007-11-28
7
371 Views
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?

javascript:void(newwindow=open('http://myuser:mypass@example.com/','test','toolbar=no,width=500,height=150'));

Open in new window

0
Comment
Question by:bluegreenone
  • 2
  • 2
7 Comments
 
LVL 21

Accepted Solution

by:
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.
0
 

Author Comment

by:bluegreenone
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?
0
 
LVL 21

Expert Comment

by:nizsmo
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.
0
 

Author Comment

by:bluegreenone
ID: 20915560
AutoAuth worked as suggested, thanks.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20943749
Forced accept.

Computer101
Community Support Moderator
0

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