Cross Origin in ajax call using ASP.NET MVC
<p>I am using Visual Studio Version 2013 having MVC framework 4.5.</p>

<p>I am calling the ActionResult using ajax like:</p>

<pre><code>$.ajax({
                type: "POST",
                url: $("#hdnSiteUrl").val() + 'Home/UserLogin',
                data: JSON.stringify(dataJson),
                contentType: "application/json; charset=utf-8",
                datatype: "jsonp",
                async: false,
                success: function (msg) {
                    if (msg == 'false') {
                        $("#loginerror").show();
                        $("#loginerror").text("UserName or Password is wrong.");
                    }
                    else {
                        //window.location.href = ($("#hdnSiteUrl").val());
                        window.location.reload();
                    }
                },
                error: function (msg) {
                }
            });
</code></pre>

<p>The problem I am facing right now is cross origin in some computer but in some computer it is running fine.</p>

<p>How do I solve this issue?</p>

<p>Please someone who has solved help me to solve this issue!</p>

<p>I have also tried to send the data using datatype: jsonp in some computer it is running but in some computer still have problem.</p>