84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我使用php+ajax学习进行网站建设,当使用 xmlHttp.setRequestHeader("content-length",Querystring.length); 时,在chorme里出现了这个错误,在webkit的浏览器里都会出现这个问题,请问如何解决呢? 它提示,这是不安全吗。那么该如何改呢?
学习是最好的投资!
php - chrome How to solve the problem of refused to set unsage header "content-length"-PHP Chinese website Q&A-php - chrome How to solve the problem of refused to set unsage header "content-length"-PHP Chinese website Q&A
Take a look around and learn.
是的,实际上chrome是按照w3c标准来执行的,你可以看这里的原文描述,http://www.w3.org/TR/XMLHttpRequest/#...
我把它摘录出来
Terminate these steps if header is a case-insensitive match for one of the following headers:Accept-CharsetAccept-EncodingConnectionContent-LengthCookieCookie2Content-Transfer-EncodingDateExpectHostKeep-AliveRefererTETrailerTransfer-EncodingUpgradeUser-AgentVia
也就是说,当你的header匹配以上字符时,这一步骤将被终止
php - chrome How to solve the problem of refused to set unsage header "content-length"-PHP Chinese website Q&A-php - chrome How to solve the problem of refused to set unsage header "content-length"-PHP Chinese website Q&A
Take a look around and learn.
是的,实际上chrome是按照w3c标准来执行的,你可以看这里的原文描述,http://www.w3.org/TR/XMLHttpRequest/#...
我把它摘录出来
也就是说,当你的header匹配以上字符时,这一步骤将被终止