Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-Other

New issue 1880 by [email protected]: CORS requests fail in Firefox
http://code.google.com/p/google-caja/issues/detail?id=1880

What revision of the cajoler exhibits the problem?  On what browser and OS?

Rev 5643, Firefox 26.0, Ubuntu

What steps will reproduce the problem?
1. Run the following code in the Caja playground (ES5 mode)

<h1>CORS Test</h1>
<div id="result"></div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js";></script>
<script>
  $(document).ready(function() {
    $('#result').text('Running...');
    $.support.cors = true;
    $.ajax({
      url: 'https://cors-test.appspot.com/test'
    }).done(function() {
      $('#result').text('It worked!');
    }).fail(function(jqXHR, textStatus, errorThrown) {
      $('#result').text('It failed: ' + errorThrown);
    });
  });
</script>

What is the expected output? What do you see instead?

Expected: It worked!
Actual: It failed: NS_ERROR_DOM_BAD_URI: Access to restricted URI denied

Please provide any additional information below.

The same code works fine in Chrome, or in Firefox outside of Caja.

--
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