Add xhrFields support and beforeSend callbacks to ajax chosen