title: JQuery cross-site request with credentials
body: <p>As the tittle says, i'm trying to access a cross-site REST service, using JQuery with CORS.
  The problem are the credentials. I followed some answers from this site, but it seems my code is not sending any validaton data since it asks for the user and pass opening a window. I'll show some code so you see it:</p>
  
  <p>JQquery:</p>
  
  <pre><code>$.ajax({
      username: 'user',
      password: 'pass',
      url: url,
      dataType: 'json',
      data: {},
      crossDomain: true,
      xhrFields: {
            withCredentials: true
      },
      success: function(data) {},
      error: function(e){}
  }); 
  </code></pre>
  
  <p>When the AJAX request is made, as i said, a window appears asking for username and password. This shoud not appear, since the user and pass are in the AJAX request! If i put the user and pass it works, so the validaton works fine on destination server.</p>
  
  <p>Thanks for your time! Sorry about my non-native english writing =D.</p>