clientside-request
v1.4.4
Published
a clientside module that enables async requests in the browser; mimics request-promise in usage.
Readme
clientside-request
This is a npm nodule for the front end (a cmm module) built to bring the simplicity of request-promise package to the browser.
Installation
npm install clientside-request --save
Example Usage
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)=>{
/* */
})comments
To preserve sessions and handle cookies from server and to server - set {cookies : true}
