cookie
This commit is contained in:
parent
bf3a456c8f
commit
5ea18f1468
@ -64,11 +64,7 @@ struct WebPage {
|
||||
})
|
||||
.onPageBegin(()=>{
|
||||
if (this.needsCookieInjection(this.url)) {
|
||||
try {
|
||||
webview.WebCookieManager.configCookieSync('https://dev-wx.igandan.com', 'hcp_from=expert_app;path=/;domain=.igandan.com;hcp_token='+this.hcp_token+';');
|
||||
} catch (error) {
|
||||
console.error(`ErrorCode: ${(error as BusinessError).code}, Message: ${(error as BusinessError).message}`);
|
||||
}
|
||||
this.controller.runJavaScript(`hcp_from=expert_app;path=/;domain=.igandan.com;hcp_token=${this.hcp_token}`)
|
||||
}
|
||||
})
|
||||
.onPageEnd(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user