Chrome plugin development: user: pass @url is not supported by Google Chrome anymore?

I am developing a Chrome plugin that uses XMLHttpRequest to send a GET HTTP request with username / password to a URL with basic-protected protection, so it can subsequently "automatically log in" to it (since Chrome caches credentials for HTTP basic-auth )

Here is the code I'm using:

  var xml = new XMLHttpRequest();
  xml.open('GET',<url>,false,<username>,<password>)
  xml.send('');

This used to work fine, but it started with the fact that it did not work a while ago. The plugin code has not changed, so I thought it might be related to Chrome itself. I downloaded the previous version for OSX (17) and BAM, worked again.

After some additional research, I found out that this could be due to the fact that Chrome 19 does not support the username: pwd @url syntax for authentication to URLs with basic-auth protection, because when I send XMLHttpRequest, I see it in the Google Console Chrome js:

GET http: // user: pass@domain.com 401 (unauthorized)

Does anyone know if this is a bug or does Chrome stop supporting this feature?

Thank,

Marcelo.

+3
source share
1 answer

You are not the only person having this problem . He ruffled several other people's feathers.

However, given the comments of the Chromium developers:

auth URL- .

, .

+2

All Articles