clientside-request

npm npm

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}