title: Catching XMLHttpRequest cross-domain errors
body: <p>Is there any way to catch an error caused by <code>Access-Control-Allow-Origin</code> when making a request? I'm using jQuery, and the handler set in <code>.ajaxError()</code> never gets called because the request is never made to begin with.</p>
  
  <p>Is there any workaround?</p>