Javascript Mozilla角色

Javascript Mozilla角色,javascript,html,xmlhttprequest,Javascript,Html,Xmlhttprequest,我知道很多代码,但对于html中的xhr.setRequestHeader,我完全是个废物。我将其设置为用户可以使用Mozilla的Persona登录,但控制台总是返回错误: Refused to set unsafe header "Content-length" Refused to set unsafe header "Connection" [Error] Failed to load resource: the server responded with a status of 405

我知道很多代码,但对于html中的xhr.setRequestHeader,我完全是个废物。我将其设置为用户可以使用Mozilla的Persona登录,但控制台总是返回错误:

Refused to set unsafe header "Content-length"
Refused to set unsafe header "Connection"
[Error] Failed to load resource: the server responded with a status of 405 (Method Not Allowed) (sign-in, line 0)
我已经设置了html页面。。。有点,但我想得到一些帮助。我的网站可以在和找到。谢谢


哦,有人能给我解释一下头是什么吗?正如我所说,我对这一点还不熟悉。

关于什么是头,它是一个HTTP头。此处介绍了一些示例和一般信息-。在您喜爱的搜索引擎中搜索有关HTTP标头的详细信息。