From 89a7f40b8ce7cc0584bd3ed76bb2f02ac999a197 Mon Sep 17 00:00:00 2001 From: Gk40002148 Date: Mon, 23 May 2022 16:07:00 +0900 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E3=81=8B=E3=82=89=E8=B5=B7?= =?UTF-8?q?=E5=8B=95=E3=81=97=E3=81=9F=E9=9A=9B=E3=81=AEURL=E3=81=8C?= =?UTF-8?q?=E7=95=B0=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=9F?= =?UTF-8?q?=E3=82=81=E3=82=AA=E3=83=95=E3=83=A9=E3=82=A4=E3=83=B3View?= =?UTF-8?q?=E3=81=8C=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E3=81=9F=E3=82=81=E3=80=81?= =?UTF-8?q?=E5=AF=BE=E8=B1=A1=E3=81=AEURL=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AgileWorks/AgileWorks/WebView/View/WebViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AgileWorks/AgileWorks/WebView/View/WebViewController.swift b/AgileWorks/AgileWorks/WebView/View/WebViewController.swift index 3299374..f5f1203 100644 --- a/AgileWorks/AgileWorks/WebView/View/WebViewController.swift +++ b/AgileWorks/AgileWorks/WebView/View/WebViewController.swift @@ -49,7 +49,7 @@ class WebViewController: UIViewController { "Mobile#agileWorksSearch": getDisplayString(key: "SearchTitle", comment: "") ] // 書類表示時 URL - let docUrl: [String] = ["Mobile#docDetail"] + let docUrl: [String] = ["Mobile#docDetail", "#docDetail"] override func viewDidLoad() { super.viewDidLoad() @@ -160,7 +160,7 @@ class WebViewController: UIViewController { DispatchQueue.main.async { let cookie = HTTPCookie(properties: [ HTTPCookiePropertyKey.domain: KeychainDataStore().readServerURL() ?? "", - HTTPCookiePropertyKey.path: "/AgileWorks", + HTTPCookiePropertyKey.path: "/" + Configuration.shared.awContextPath, HTTPCookiePropertyKey.secure: true, HTTPCookiePropertyKey.name: "JSESSIONID", HTTPCookiePropertyKey.value: KeychainDataStore().readSessionID()! @@ -561,7 +561,7 @@ extension WebViewController: WKNavigationDelegate { let formHost = KeychainDataStore().readServerURL()! // WebView と同じセッションでダウンロードできるように Cookie 設定。 // 他サイトへのアクセス時に Cookie を漏らさないよう、ホスト名とパスを確認しておく。 - if (url.host == formHost) && url.path.starts(with: "/AgileWorks/Broker/") { + if (url.host == formHost) && url.path.starts(with: "/" + Configuration.shared.awContextPath + "/Broker/") { request.setValue("JSESSIONID=\(KeychainDataStore().readSessionID()!)", forHTTPHeaderField: "Cookie") } return request -- GitLab