Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (137 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (656 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

URLS with basic auth. are not working right

like https://username:password@domain/mainfest.json

Found one issue in the bootstrap.js xhr.setRequestHeader("Authorization", "Basic ...);

is missing.

Also the cordova file loader does not set the right headers for downloading

authHeaderValue = function(username, password) {
    var tok = username + ':' + password;
    var hash = btoa(tok);
    return "Basic " + hash;
};

options.headers = {'Authorization': authHeaderValue('Bob', '1234') };

Guida contributor