menu
menu
Menu
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
INTERNAL.HOST.com/api/auth/token" but it appears i'm still getting the error attached
open class AlamofireService : NSObject { var privateSession:MooManager? // Mark: init override init() { super.init() var defaultHeaders = SessionManager.defaultHTTPHeaders defaultHeaders["User-Agent"] = (defaultHeaders["User-Agent"]! as String) + " mooIOS/1.0" let configuration = URLSessionConfiguration.ephemeral configuration.httpAdditionalHeaders = defaultHeaders let serverTrustPolicies: [String: ServerTrustPolicy] = [ "INTERNAL.HOST.com": .disableEvaluation ] //privateSession = MooManager(configuration: configuration ) privateSession = MooManager(configuration: configuration, serverTrustPolicyManager: ServerTrustPolicyManager(policies: serverTrustPolicies) ) } // Mark: Singleton class var sharedInstance : AlamofireService { struct Singleton { static let instance = AlamofireService() } // Return singleton instance return Singleton.instance } }
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
INTERNAL.HOST.com/api/auth/token" but it appears i'm still getting the error attached
open class AlamofireService : NSObject { var privateSession:MooManager? // Mark: init override init() { super.init() var defaultHeaders = SessionManager.defaultHTTPHeaders defaultHeaders["User-Agent"] = (defaultHeaders["User-Agent"]! as String) + " mooIOS/1.0" let configuration = URLSessionConfiguration.ephemeral configuration.httpAdditionalHeaders = defaultHeaders let serverTrustPolicies: [String: ServerTrustPolicy] = [ "INTERNAL.HOST.com": .disableEvaluation ] //privateSession = MooManager(configuration: configuration ) privateSession = MooManager(configuration: configuration, serverTrustPolicyManager: ServerTrustPolicyManager(policies: serverTrustPolicies) ) } // Mark: Singleton class var sharedInstance : AlamofireService { struct Singleton { static let instance = AlamofireService() } // Return singleton instance return Singleton.instance } }