diff --git a/products/expert/src/main/ets/pages/WebView/WebPage.ets b/products/expert/src/main/ets/pages/WebView/WebPage.ets index 2d332f1..da5e4dc 100644 --- a/products/expert/src/main/ets/pages/WebView/WebPage.ets +++ b/products/expert/src/main/ets/pages/WebView/WebPage.ets @@ -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(() => {