From 4acb14a1bdf59c9cdc997ec1231e2f707d11000b Mon Sep 17 00:00:00 2001 From: "K. Shankari" Date: Mon, 11 Apr 2016 12:47:35 -0700 Subject: [PATCH] Enable insecure connections to http URLs for the POST requests This allows us to connect to local http URLs for testing --- src/ios/BEMCommunicationHelper.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ios/BEMCommunicationHelper.m b/src/ios/BEMCommunicationHelper.m index 6782b9f..004159f 100644 --- a/src/ios/BEMCommunicationHelper.m +++ b/src/ios/BEMCommunicationHelper.m @@ -201,6 +201,7 @@ - (void)postToHost { myFetcher.allowLocalhostRequest = YES; myFetcher.retryEnabled = YES; myFetcher.bodyData = jsonData; + myFetcher.allowedInsecureSchemes = @[ @"http" ]; [myFetcher beginFetchWithCompletionHandler:^(NSData * _Nullable data, NSError * _Nullable error) { self.mCompletionHandler(data, myFetcher.response, error); }];