Skip to content

Commit 1902b77

Browse files
crhayesIT-MikeS
andauthored
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>
1 parent 0502521 commit 1902b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/Capacitor/Capacitor/Plugins/CapacitorCookieManager.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public class CapacitorCookieManager {
8888
let jar = HTTPCookieStorage.shared
8989
guard let url = self.getServerUrl() else { return "" }
9090
guard let cookies = jar.cookies(for: url) else { return "" }
91-
return cookies.map({"\($0.name)=\($0.value)"}).joined(separator: ";")
91+
return cookies.map({"\($0.name)=\($0.value)"}).joined(separator: "; ")
9292
}
9393

9494
public func deleteCookie(_ url: URL, _ key: String) {

0 commit comments

Comments
 (0)