Implementing the ability to specify custom headers in AJAX requests