A small Chrome extension for automatically supplying HTTP Basic Auth credentials per origin or wildcard pattern.
- Save credentials for exact origins like
https://staging.example.com - Save wildcard patterns like
https://app-*.example.com - Enable or disable individual rows
- Edit and remove saved rows
- Import and export all saved credential rows as JSON
- Extension icon opens the control page directly
- Extension icon turns green when the current site is configured
- Autofills only once per tab + URL
- No always-on content script; toast is injected only after autofill
- GitHub-inspired light/dark UI
- clone this repo
git clone https://github.com/RNZ01/basic-auth-extention.git - Open Chrome and go to
chrome://extensions. - Enable Developer mode.
- Click Load unpacked.
- Select this repository folder.
- Click the extension icon.
- Add an origin or wildcard pattern.
- Enter username and password.
- Visit a site that triggers Basic Auth.
If you click the extension icon while on an unconfigured site, the control page opens with that site origin prefilled.
Rows are stored locally in Chrome extension storage:
chrome.storage.localExample shape:
{
"https://app-*.example.com": {
"username": "deploy-user",
"password": "secret",
"enabled": true
}
}Websites and other extensions cannot directly read this extension's storage. Credentials are not encrypted, so someone with access to your browser profile or machine may be able to inspect them.
For stronger protection, add a master-password encryption flow before storing secrets.
MIT
