title: Origin http://localhost:1716 is not allowed by Access-Control-Allow-Origin
body: <p>I have this error </p>
  
  <blockquote>
    <p>XMLHttpRequest cannot load <code>http://localhost:81/Test/Service.svc/SetJSON</code>. Origin <code>http://localhost:1716</code> is not allowed by Access-Control-Allow-Origin.</p>
  </blockquote>
  
  <p>when I calls wcf web service using jquery.</p>
  
  <pre><code>$.ajax({
      type: 'POST',
      url: webmethod,
      data: '{"data":"Darshana"}',
      contentType: "application/json; charset=utf-8",
      dataType: "json",
      success: function (msg) {
          alert(msg.d);
      },
      error: function (e) {
          alert("Unavailable");
      }
  });
  </code></pre>
  
  <p>why is that?</p>
  
  <p>any help. thanx..</p>