ajax跨越域名操作会提示No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'n

ajax跨越域名操作会提示No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.解决方法,在目标页面声明header标示授权header("Access-Control-Allow-Origin: *");*标示所有网址