diff --git a/Libraries/Image/RCTImageLoader.mm b/Libraries/Image/RCTImageLoader.mm index e356fb2d79cccd..635f89d22deb7a 100644 --- a/Libraries/Image/RCTImageLoader.mm +++ b/Libraries/Image/RCTImageLoader.mm @@ -1163,7 +1163,11 @@ - (void)cancelRequest:(id)requestToken resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) { - NSURLRequest *request = [RCTConvert NSURLRequest:uri]; + NSURL *URL = [RCTConvert NSURL:uri]; + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:URL]; + [headers enumerateKeysAndObjectsUsingBlock:^(NSString *key, id value, BOOL *stop) { + [request addValue:[RCTConvert NSString:value] forHTTPHeaderField:key]; + }]; [self getImageSizeForURLRequest:request block:^(NSError *error, CGSize size) { if (error) {