How to read json from remote in javascript
<p>I have tried to read a json from remote server, then i got this error. </p>

<blockquote>
  <p>"Cross-Origin Request Blocked: The Same Origin Policy disallows
  reading the remote resource"</p>
</blockquote>

<p>Then i read that i need to set the datatype to <code>jsonp</code>.</p>

<pre><code>  dataType: 'jsonp',
</code></pre>

<p>The problem is the json that i am getting isn't in <code>jsonp</code> format, which is required by <code>jsonp</code>. If i don't use jsonp i get the above error message.</p>

<p>How can I resolve this?</p>