title: $.post No 'Access-Control-Allow-Origin' header
body: <p>Im fairly new to post requests and ive been getting this error when i try to do a post. Ive looked for answers but everything is too complicated for me to understand what i need to change in my code for it too work. </p>
  
  <pre><code>var url = 'http://unturnedbox.clanservers.com/serverquery/serverQuery.php';
  $(document).on('click','.test', function(getServerInfo)
  {
     var getServerInfo =
     {
          "ip": "23.229.5.250",
          "port": "27021"
      }
  
      $.post(url, JSON.stringify(getServerInfo), function(response)
      {
          response.addHeader("Access-Control-Allow-Origin", "http://unturnedbox.clanservers.com");
          if (response.error)
          {
  
          }
          else
          {
              $('.test').html('&lt;div&gt;'+ response.result.length +'&lt;/div&gt;');
          }
      });
  });
  </code></pre>
  
  <p>Could someone please explain to me what im doing wrong. Thank you.</p>