在调试接口的时候发现Jquery Ajax怎么修改headers的Cookie都无法生效,于是得到了这个答案
var forbiddenRequestHeaders = [ "accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via" ];原文链接:https://www.f2er.com/ajax/163821.html