解决Ajax跨域问题:Origin http://127.0.0.1:8080 is not allowed by Access-Control-Allow-Origin.

在服务端上设置一下header,如response.header("Access-Control-Allow-Origin","*");

 

posted @ 2014-03-13 12:43  LeeHonGee  阅读(23531)  评论(1)    收藏  举报