--- layout: default nav: tutorial ---

# Modifying Requests

This demo shows how to modify intercooler requests on the client side using Javascript

## Explanation

- You can add a listener for the `beforeAjaxSend.ic` event on the `document` object. This will be passed in the ajax setup hash which you can modify to add headers, parameters, etc. By setting the `cancel` property to true, you will cancel the ajax request.

## Demo

Send Request...
Stop Requests

## Response: