'how to autofill a basic auth prompts through a chrome extension?

enter image description here

I saw the chrome extension bitwarden can autofill a basic auth prompt,

but I have no idea how it did this.

Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source