cookie添加
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user