From 88e39df8a547ba321ed02ec5dde4df68544bf09d Mon Sep 17 00:00:00 2001 From: Tim Brust Date: Tue, 27 Oct 2020 16:40:46 +0100 Subject: [PATCH] fix(ios): remove hardcoded X-Requested-With header (#287) no other platform sets this header and it should be up to the user if it's desired to 'disguise' the HTTP call as an XMLHttpRequest --- src/ios/CDVFileTransfer.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ios/CDVFileTransfer.m b/src/ios/CDVFileTransfer.m index 5d556b01..66cb9a1f 100644 --- a/src/ios/CDVFileTransfer.m +++ b/src/ios/CDVFileTransfer.m @@ -102,8 +102,6 @@ - (NSString*)escapePathComponentForUrlString:(NSString*)urlString - (void)applyRequestHeaders:(NSDictionary*)headers toRequest:(NSMutableURLRequest*)req { - [req setValue:@"XMLHttpRequest" forHTTPHeaderField:@"X-Requested-With"]; - for (NSString* headerName in headers) { id value = [headers objectForKey:headerName]; if (!value || (value == [NSNull null])) {