参考页面:https://blog.csdn.net/idomyway/article/details/79572973
如果请求的是PHP页面:
header("Access-Control-Allow-Origin: *");