Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49240

IOS Certificate issue

$
0
0

@mohamedfekry wrote:

Hello, please i need help, after upgrading to ionic v 3.19.1 i can`t call any webservice in ios as the below error, please your urgent help.

Failed to load resource: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “” which could put your confidential information at risk.

XMLHttpRequest cannot load https://…/token due to access control checks.

However i added the below code in AppDelegate.m

@implementation NSURLRequest(DataController)

  • (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host
    {
    return YES;
    }
    @end

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49240

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>