Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@Lordnibbler /auth.js secret
Created Nov 14, 2013

chrome.webRequest.onAuthRequired.addListener(function(details, callback) {
if (details.url.match(basic_auth_url)) {
chrome.tabs.update(basic_auth_tab_id, {url: basic_auth_redirect_url});
} else {
}, {"urls":["http://*/*", "https://*/*"]},["asyncBlocking"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.