XMLHttpRequest cannot load Origin null is not allowed by Access-Control-Allow-Origin
<p>I have a code.html file containing the following code.</p>

<pre><code> $.ajax({ 
                    type: "POST", 
                    datatype: "JSONP",
                    url: "path",
                    success: function(msg){
                    var e = document.createElement("div");
                    e.id = "ads";
                    document.body.appendChild(e);
                    $("#ads").html(msg);

                    }
           });
</code></pre>

<p>When I open the code.html file in the browser, it gives an error:</p>

<pre><code>**"XMLHttpRequest cannot load file://..... Origin null is not allowed by Access-Control-Allow-Origin."**
</code></pre>

<p>Please help me!! how to avoid this  problem</p>
