Skip to content

Commit

Permalink
Merge pull request #658 from getkickback/ios-cookie-domain
Browse files Browse the repository at this point in the history
iOS CookieManager.getCookies - Check that URL has suffix of cookie do…
  • Loading branch information
pichillilorenzo authored Jan 28, 2021
2 parents c65e72c + 44482c1 commit c65ee34
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 c65ee34

Please sign in to comment.