前端设置Cookie请求头报错 Refused to set unsafe header "Cookie"

w3c规定,当请求的header匹配如下不安全字符时,将被终止web

  Accept-Charset
  Accept-Encoding
  Connection
  Content-Length
  Cookie
  Cookie2
  Content-Transfer-Encoding
  Date
  Expect
  Host
  Keep-Alive
  Referer
  TE
  Trailer
  Transfer-Encoding
  Upgrade
  User-Agent
  Via
posted @ 2021-07-28 22:50  黑蛋的博客  阅读(4899)  评论(0编辑  收藏  举报