beforeSend option to hook the XHR before sending