如果请求的url是静态的html页面,则需要在页面中添加meta标签代码:
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
参照地址 – 跨域问题解决部分解决办法