Skip to content

Commit

Permalink
fix(iOS): Properly check if a cookie belongs to a domain (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
timrwhi authored Apr 6, 2020
1 parent 2ffce54 commit 4d3e816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNCookieManagerIOS/RNCookieManagerIOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ + (BOOL)requiresMainQueueSetup
[cookieStore getAllCookies:^(NSArray<NSHTTPCookie *> *allCookies) {
NSMutableDictionary *cookies = [NSMutableDictionary dictionary];
for (NSHTTPCookie *cookie in allCookies) {
if ([cookie.domain containsString:topLevelDomain]) {
if ([topLevelDomain containsString:cookie.domain]) {
[cookies setObject:[self createCookieData:cookie] forKey:cookie.name];
}
}
Expand Down

0 comments on commit 4d3e816

Please sign in to comment.