WebExtension webRequest.onAuthRequired seems not working

Hi,

I am trying the webRequest.onAuthRequired API on Safari WebExtension. From MDN document: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/onAuthRequired, Safari WebExtension doesn't support extraInfoSpec

After inspecting the background, the webRequest.onAuthRequired callback is triggered, but in the callback I return the credentials directly

chrome.webRequest.onAuthRequired.addListener(
  function(details) {
    return {
      authCredentials: {
        username: 'username',
        password: 'password'
      }
    }
  },
  { urls: ['<all_urls>'] }
);

It still doesn't work, Any ideas to resolve this?

Thanks a lot!

Hi there, one year later and we're experiencing this problem on my team as well.

Any luck lu.xu? Or can anyone from Apple comment on this? Sounds like a bug.

Thanks, Tyler

WebExtension webRequest.onAuthRequired seems not working
 
 
Q