Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 397
  • Last Modified:

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

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
bluegreenone
Asked:
bluegreenone
  • 2
  • 2
1 Solution
 
nizsmoDeveloperCommented:
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
 
bluegreenoneAuthor Commented:
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
 
nizsmoDeveloperCommented:
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
 
bluegreenoneAuthor Commented:
AutoAuth worked as suggested, thanks.
0
 
Computer101Commented:
Forced accept.

Computer101
Community Support Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now