Join us to show up for other Firefox users 🦊. Earn fun badges and Mozilla swag vouchers! Find out more: https://mzl.la/askafox150

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Dalšne informacije

Disable Authentication Pop up asking for Username and Password using JavaScript

  • 2 wótegronje
  • 1 ma toś ten problem
  • 16 naglědow
  • Slědne wótegrono wót deepak_aces
  • Archiwěrowany

Hi Team,

May you kindly help for the below scenario:-

I have a requirement where when a User requests a URL, a custom Pop Up asking for User Name and Password has to be shown. Currently, the default Pop Up asking for User Name and Password which is provided by the Firefox pops up and then our custom Pop Up comes on top of it.

So, how can we disable or surpass the default browser pop up using Java script or any webRequest API methods. Tried a few options:-

1. Request status to 200 for every request This is impractical and not possible scenario

2. Change the Authentication Header on the Server Before posting the data to the server, Pop Up comes and hence this also won't help.


Regards,

Hi Team, May you kindly help for the below scenario:- I have a requirement where when a User requests a URL, a custom Pop Up asking for User Name and Password has to be shown. Currently, the default Pop Up asking for User Name and Password which is provided by the Firefox pops up and then our custom Pop Up comes on top of it. So, how can we disable or surpass the default browser pop up using Java script or any webRequest API methods. Tried a few options:- 1. Request status to 200 for every request This is impractical and not possible scenario 2. Change the Authentication Header on the Server Before posting the data to the server, Pop Up comes and hence this also won't help. Regards,

Wšykne wótegrona (2)

deepak_aces said

Hi Team, May you kindly help for the below scenario:- I have a requirement where when a User requests a URL, a custom Pop Up asking for User Name and Password has to be shown. Currently, the default Pop Up asking for User Name and Password which is provided by the Firefox pops up and then our custom Pop Up comes on top of it. So, how can we disable or surpass the default browser pop up using Java script or any webRequest API methods. Tried a few options:- 1. Request status to 200 for every request This is impractical and not possible scenario 2. Change the Authentication Header on the Server Before posting the data to the server, Pop Up comes and hence this also won't help. Regards,

Thanks @cor-el I have already posted the same at below suggested communities. Waiting for a few suggestions :)