Skip to content

Commit

Permalink
iOS CookieManager.getCookies - Check that URL has suffix of cookie do…
Browse files Browse the repository at this point in the history
…main
  • Loading branch information
arneke committed Jan 28, 2021
1 parent eaad17e commit 44482c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/MyCookieManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 44482c1

Please # to comment.