PHP Cross-domain Setting
In the previous article 《jQuery $.ajax Method Ignored the Undefined Values》, I send a request to the server’s php file, maybe you would get a cross-domain error.
XMLHttpRequest cannot load http://127.0.0.1/jq-undefined.php?para1=1¶2=2. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
继续阅读