title: Mindblowing - 'Access-Control-Allow-Origin' issue
body: <p>I make ajax request to <code>http://mydomain.com.net/temp/getdata.php?File=something.txt</code>
  from 
   <code>http://mydomain.com.net/myapp/web/(index.php)</code> and am getting : </p>
  
  <blockquote>
    <p>XMLHttpRequest cannot load <code>http://mydomain.com.net/temp/getdata.php?File=something.txt</code></p>
  </blockquote>
  
  <p>The <code>Access-Control-Allow-Origin</code> header has a value <code>http://mydomain.com.net/myapp/web/</code> that is not equal to the supplied origin. Origin <code>http://mydomain.com.net</code> is therefore not allowed access.</p>
  
  <p>That seems rather crazy to me, because I was doing that nicely since ever, and it pretty much looks like I'm in the same domain. isn't that right?</p>
  
  <p>So, I tried using <code>header("Access-Control-Allow-Origin: http://mydomain.com.net/myapp/web/");</code>  on my php file,
  but still got the same error. And I don't know how that happened (maybe somebody else changed a server's setting), but I was able to perform
  such request before without a hint of a problem.</p>
  
  <p>So, if you experts will pardon my ignorance, and kindly lend me a hand, I'd like to get a little taste of your knowledge concerning the issue.</p>
  
  <p>Thanks in advance.</p>