 <p>I think you use a Webkit browser like chrome, right? Chome does'n see a relation between two local files. Use Firefox or run it on a webserver ;)</p> <p><a href="http://stackoverflow.com/questions/5224017/origin-null-is-not-allowed-by-access-control-allow-origin-in-chrome-why">&quot;Origin null is not allowed by Access-Control-Allow-Origin&quot; in Chrome. Why?</a></p>