objective c - NSURLRequest setAllowsAnyHTTPSCertificate to Swift -


what equivalent swift code of objective-c code below?

[nsurlrequest setallowsanyhttpscertificate:yes forhost:[url host]]; 

this not available on foundation framework. it's apple private api , apple says application rejected if use private api.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -