iOS CookieManager.getCookies - Check that URL has suffix of cookie domain

This commit is contained in:
Arne Kepp 2021-01-28 11:46:41 +01:00
parent eaad17eb4f
commit 44482c123f
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class MyCookieManager: NSObject, FlutterPlugin {
if let urlHost = URL(string: url)?.host {
MyCookieManager.httpCookieStore!.getAllCookies { (cookies) in
for cookie in cookies {
if cookie.domain.contains(urlHost) {
if urlHost.hasSuffix(cookie.domain) {
var sameSite: String? = nil
if #available(iOS 13.0, *) {
if let sameSiteValue = cookie.sameSitePolicy?.rawValue {