首页 > Web开发 > 详细

xmlHttp ie6下不跨域还提示没有权限,ie8下不会有这错误

时间:2015-11-29 09:21:06      阅读:213      评论:0      收藏:0      [点我收藏+]
url太长就会提示没有权限,ie8不会,这应该跟浏览器有关的
其实有个问题你注意一下就是,改成POST 方式传就解决了
this.xmlHttp.open("POST", this.url, true);
//alert(‘end‘);

this.xmlHttp.setrequestheader("content-length",this._data.length);
this.xmlHttp.setrequestheader("content-type","application/x-www-form-urlencoded");
this.xmlHttp.onreadystatechange = Page;
this.xmlHttp.send(this._data);

by webxeyes 转载注明出处 http://blog.csdn.net/webxeyes

xmlHttp ie6下不跨域还提示没有权限,ie8下不会有这错误

原文:http://www.jb51.net/article/17890.htm

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!