www/pwmgr.js
/* Make a request to the Vault server. Return the status.
*/
Make a request to the Vault server. Return the status.
Make a request to the Vault server . Return the status .
function vaultPostRequest(relURL, dataobj) {
    var xhttp = new XMLHttpRequest();
    xhttp.open("POST", BASEURL + encodeURI(relURL), false);
    xhttp.setRequestHeader("Content-type", "application/json");
    xhttp.setRequestHeader("X-Vault-Token",window.userToken);
    xhttp.send(JSON.stringify(dataobj));
    console.log("response=%s",xhttp.responseText);
    return xhttp.status
}
function vaultPostRequest ( relURL , dataobj ) { var xhttp = new XMLHttpRequest ( ) ; xhttp . open ( "POST" , BASEURL + encodeURI ( relURL ) , false ) ; xhttp . setRequestHeader ( "Content-type" , "application/json" ) ; xhttp . setRequestHeader ( "X-Vault-Token" , window . userToken ) ; xhttp . send ( JSON . stringify ( dataobj ) ) ; console . log ( "response=%s" , xhttp . responseText ) ; return xhttp . status }
Make a request to the Vault server.
Make a request to the Vault server .