This is a npm nodule for the front end (a cmm module) built to bring the simplicity of request-promise
package to the browser.
npm install clientside-request --save
require("clientside-request")
.then((request)=>{
return request("http://same_origin/route") // note, request must be same origin as browsers block cross origin requests.
})
.then((response)=>{
/* */
})
To preserve sessions and handle cookies from server and to server - set {cookies : true}