cookie添加

This commit is contained in:
xiaoxiao 2025-08-14 14:36:34 +08:00
parent 38af6d3fd8
commit e73e2d541f

View File

@ -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(() => {