From 1902b77213e36bd9899634e7c86c9a02aab39932 Mon Sep 17 00:00:00 2001 From: Chris Hayes Date: Wed, 15 Mar 2023 12:28:44 -0400 Subject: [PATCH] fix(iOS): Separate cookies by ; rather than ; when accessing through document.cookie (Cap 4.x) (#6380) Co-authored-by: IT-MikeS <20338451+IT-MikeS@users.noreply.github.com> --- ios/Capacitor/Capacitor/Plugins/CapacitorCookieManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Capacitor/Capacitor/Plugins/CapacitorCookieManager.swift b/ios/Capacitor/Capacitor/Plugins/CapacitorCookieManager.swift index 99dd550b99..998fa2f4cf 100644 --- a/ios/Capacitor/Capacitor/Plugins/CapacitorCookieManager.swift +++ b/ios/Capacitor/Capacitor/Plugins/CapacitorCookieManager.swift @@ -88,7 +88,7 @@ public class CapacitorCookieManager { let jar = HTTPCookieStorage.shared guard let url = self.getServerUrl() else { return "" } guard let cookies = jar.cookies(for: url) else { return "" } - return cookies.map({"\($0.name)=\($0.value)"}).joined(separator: ";") + return cookies.map({"\($0.name)=\($0.value)"}).joined(separator: "; ") } public func deleteCookie(_ url: URL, _ key: String) {