This demo shows how to modify intercooler requests on the client side using Javascript
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.