title: Javascript XMLHttpRequest cannot load http://XX.XX.XX. No 'Access-Control-Allow-Origin' header is present on the requested resource
body: <p>My Client have a Web Service running at their server that accepts Soap request and returns soap response. The only thing i have with me is the IP address at which it is running, Port and some sample Soap request strings. 
        The Problem is when i run the Soap request with given IP address and SOAP request string in SOA-Client of Mozilla, am getting response properly. But when i try to achieve the same in my local project am getting "<strong>XMLHttpRequest cannot load <a href="http://XXX.XX.XX.XXX" rel="nofollow">http://XXX.XX.XX.XXX</a>. No 'Access-Control-Allow-Origin' header is present on the requested resource.</strong>" Error. Please find the Below Code Which am using.</p>
  
  <p>var xmhtp = new XMLHttpRequest();</p>
  
  <pre><code>            xmhtp.onreadystatechange = function () {
                  if (xmhtp.readyState == 4 &amp;&amp; xmhtp.status == 200) {
                      document.getElementById("dvResponse").innerHTML = xmhtp.responseText;
                  }
              };
  
  
              var sr = '&lt;?xml version="1.0"?&gt;' +
                       '&lt;SOAP-ENV:Envelope ' +
                      'xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' +
                      'xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" ' +
                      'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
                      'xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt;' +
                      '&lt;SOAP-ENV:Body&gt;' +
                      '&lt;m:dcGetProd xmlns:m="urn:abc.aa"&gt;' +
                      '&lt;startTime xsi:type="xsd:dateTime"&gt;2015-11-30T08:00:00&lt;/startTime&gt;' +
                      '&lt;endTime xsi:type="xsd:dateTime"&gt;2016-01-11T18:15:00&lt;/endTime&gt;' +
                      '&lt;dcName xsi:type="xsd:string"&gt;Example1&lt;/dcName&gt;' +
                      '&lt;/m:dcGetProd&gt;' +
                      '&lt;/SOAP-ENV:Body&gt;' +
                      '&lt;/SOAP-ENV:Envelope&gt;';
  
              xmhtp.open("POST", "http://XXX.XX.XX.XXX:80/", true);
  
              // Send the POST request
              xmhtp.send(sr);
  </code></pre>
  
  <p>Please Help.
  Thanks,</p>