在后台加入设置:
response.addHeader("Access-Control-Allow-Origin", "*");
在html head标签加入:
<meta http-equiv="Access-Control-Allow-Origin" content="*">