Skip to content

Commit

Permalink
Enable insecure connections to http URLs for the POST requests
Browse files Browse the repository at this point in the history
This allows us to connect to local http URLs for testing
  • Loading branch information
shankari committed Apr 11, 2016
1 parent 5f96579 commit 4acb14a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ios/BEMCommunicationHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}];
Expand Down

0 comments on commit 4acb14a

Please sign in to comment.