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

2021/7/28 23:06:09

本文主要是介绍前端设置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


这篇关于前端设置Cookie请求头报错 Refused to set unsafe header "Cookie"的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程