In the code below, the AngularJS $http method calls the URL, and submits the xsrf object as a "Request Payload