diff --git a/packages/storage/ios/RNFBStorage/RNFBStorageModule.m b/packages/storage/ios/RNFBStorage/RNFBStorageModule.m index 57747de6cf..18862ba7de 100644 --- a/packages/storage/ios/RNFBStorage/RNFBStorageModule.m +++ b/packages/storage/ios/RNFBStorage/RNFBStorageModule.m @@ -110,7 +110,14 @@ - (void)invalidate { if (error != nil) { [self promiseRejectStorageException:reject error:error]; } else { - resolve([URL absoluteString]); + NSString *url = URL.absoluteString; + + if ([url rangeOfString:@":443"].location != NSNotFound) { + NSRange replaceRange = [url rangeOfString:@":443"]; + url = [url stringByReplacingCharactersInRange:replaceRange withString:@""]; + } + + resolve(url); } }]; }