<code>//报错 XMLHttpRequest cannot load http://aabb.com/api/user. No 'Access-Control-Allow-Origin' header is present on the requested resource. //解决办法 header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Origin: ccdd.com'); </code>