Skip to content

Commit

Permalink
Merge pull request #11 from shankari/restore_get_jwt
Browse files Browse the repository at this point in the history
Enable insecure connections to http URLs for the POST requests
  • Loading branch information
shankari committed Apr 11, 2016
2 parents 05ed190 + 4acb14a commit ebadc57
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 ebadc57

Please sign in to comment.