cookie添加
This commit is contained in:
parent
38af6d3fd8
commit
e73e2d541f
@ -64,7 +64,8 @@ struct WebPage {
|
||||
})
|
||||
.onPageBegin(()=>{
|
||||
if (this.needsCookieInjection(this.url)) {
|
||||
this.controller.runJavaScript(`hcp_from=expert_app;path=/;domain=.igandan.com;hcp_token=${this.hcp_token}`)
|
||||
this.controller.runJavaScript(`document.cookie = 'hcp_from=expert_app; domain=.igandan.com; path=/';`)
|
||||
this.controller.runJavaScript(`document.cookie = 'hcp_token=${this.hcp_token}; domain=.igandan.com; path=/';`)
|
||||
}
|
||||
})
|
||||
.onPageEnd(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user