title: jQuery XML REST Access-Control-Allow-Origin
body: <p>I am calling <a href="http://community.versionone.com/sdk/Documentation/CoreAPI.aspx" rel="noreferrer">Version One REST API</a> and keep getting <code>XMLHttpRequest cannot load https://www10.v1host.com/... Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.</code> javascript error. I am sending GET request and XML content is expected to be returned in response. This is my jQuery code:</p>
  
  <pre><code>$.ajax({
    dataType: "xml",
    url: "https://www10.v1host.com/...",
    success: function(data, status, xhr) {
    alert("Load was performed.");
    }
  });
  </code></pre>
  
  <p>I have changed <code>dataType: "jsonp</code>" and with this I get response in this format:</p>
  
  <pre><code>jsonp1294354293197(&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;Asset ...&lt;/Asset&gt;)
  </code></pre>
  
  <p>But get another javascript error: "<code>Uncaught SyntaxError: Unexpected token &lt;</code>"</p>
  
  <p>Is there a way how to get cross domain XML rest data (something like XMLp) or do a workaround for jsonp (prevent parsing JSON format and use my own - parse XML)?</p>