About Laya HttpRequest Header cannot inject cookie information

HttpRequest.send(), among which headers (header information, key value array), can cookies be set? Like this:
var headers:Array<any> = new Array<any>();
headers.push("Cookie", "token=xxxxx");
but it prompts Refused to set unsafe header "Cookie". How to solve it?

2017-06-06 Add a comment Free post

share

1 reply

cuixueying

Injecting cookies is currently not supported, so the above method is not implemented!

Guess you like

Origin blog.csdn.net/weixin_42565127/article/details/133988546