Comment #1 on issue 1880 by felix8a: CORS requests fail in Firefox
http://code.google.com/p/google-caja/issues/detail?id=1880

$.support.cors is not meant to be settable, but it looks harmless to set it.

Here's a testcase that demonstrates the problem without jquery:

<script>
  var xhr = new XMLHttpRequest();
  xhr.open('get', 'https://cors-test.appspot.com/test', true);
  xhr.onreadystatechange = function() {
    alert([xhr.readyState, xhr.responseText, xhr.statusText].join(':'));
  };
  try {
    xhr.send();
  } catch (e) {
    alert('fail:' + e);
  }
</script>

Side note: jquery 2.x will not use onreadystatechange. It needs onload and onerror, which aren't supported by caja yet.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to