title: JSONP-like cross-origin procedure: use JSON array response
body: <p>I need to access a page on another domain, which returns as response a JSON array:</p>
  
  <pre><code>[{"name":"value","x":"y"},{"name":"value","x":"y"}]
  </code></pre>
  
  <p>Due to the cross-origin rule, I can't get this data through an XMLHttpRequest. Apparently I have to use a JSONP-like procedure:</p>
  
  <ul>
  <li>Add script element to the page's body, with the src attribute poiting to the page</li>
  <li>The browser does the HTTP request and gets the data</li>
  </ul>
  
  <p>I can not edit the remote page/the response. The remote page is not meant to be accessed that way (so I can't use a JSONP callback parameter).
  The remote page also requires the use of a specific cookie.
  How can I access the data that has been just retrieved?</p>