www/pwmgr.js
/* Make a request to the Vault server. Return the status.
TODO: Make this asynchronous. There is not much the user can do during a request, 
but it would be nice not to freeze in case there is a problem talking to Vault.
*/
Make a request to the Vault server. Return the status.
TODO: Make this asynchronous. There is not much the user can do during a request,
but it would be nice not to freeze in case there is a problem talking to Vault.
Make a request to the Vault server . Return the status . TODO : Make this asynchronous . There is not much the user can do during a request but it would be nice not to freeze in case there is a problem talking to Vault .
function vaultDeleteRequest(relURL) {
    var xhttp = new XMLHttpRequest();
    xhttp.open("DELETE", BASEURL + encodeURI(relURL), false);
    xhttp.setRequestHeader("Content-type", "application/json");
    xhttp.setRequestHeader("X-Vault-Token",window.userToken);
    xhttp.send();
    console.log("response=%s",xhttp.status);
    return xhttp.status;
}
function vaultDeleteRequest ( relURL ) { var xhttp = new XMLHttpRequest ( ) ; xhttp . open ( "DELETE" , BASEURL + encodeURI ( relURL ) , false ) ; xhttp . setRequestHeader ( "Content-type" , "application/json" ) ; xhttp . setRequestHeader ( "X-Vault-Token" , window . userToken ) ; xhttp . send ( ) ; console . log ( "response=%s" , xhttp . status ) ; return xhttp . status ; }
Make a request to the Vault server.
Make a request to the Vault server .