app-transport-security

App Transport Security does not work any more with iOS 11 Xcode 9

北慕城南 提交于 2019-11-26 23:39:30
问题 I've been working on an app...since the iOS 11 update disabling ATS does not work anymore I've added the below in the info.plist <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> I can't use the domain exception key as I am downloading images from unknown domains. below is what I get when trying to download an image Task <C3DC30F1-5869-46F6-ABA4-5E1EC8334FD8>.<0> HTTP load failed (error code: -1005 [4:-4]) NSURLConnection finished with error - code

kCFStreamErrorDomainSSL, -9802 when connecting to a server by IP address through HTTPS in iOS 9

不问归期 提交于 2019-11-26 23:10:00
We have an iOS app that connects to our server through HTTPS. When the app is built with the new iOS 9 SDK and ran under iOS 9, the following error occurs: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802) The app uses AFNetworking 1.3.4 with pinned certs. The problem occurs if I connect to the server with its IP address. It works if I add the NSAllowsArbitraryLoads config, or if I connect to the server with its domain name. The Tomcat connector is configured with sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2". I have tried overriding the host name but it doesn't seem

Api Call Error in Xcode 7 / iOS 9 (how to setup App Transport Security in plist)

这一生的挚爱 提交于 2019-11-26 21:53:38
问题 I am using xcode 7 beta version. Now, I am working an API. If, I use the API in Xcode 6.3 it works fine but when same API I used in xcode 7 error message appears Unable to parse. here is the API i am using Please help me out. Thanks in Advance 回答1: In iOS9, Apple added new feature called App Transport Security(ATS). ATS enforces best practices during network calls, including the use of HTTPS. Apple Pre-release documentation: ATS prevents accidental disclosure, provides secure default behavior

React-native loading image over https works while http does not work

核能气质少年 提交于 2019-11-26 21:52:19
问题 I want to load an Image in the iOS simulator over a http uri as source. But nothing is shown on the screen expect the wireframe which can be made visible with the inspector. If you load the same code in Android it works fine and if you use a https uri instead of http it also works fine. Example code: render() { return ( <View> <Image source={{uri:https://facebook.github.io/react/img/logo_og.png'}} // works // source={{uri: http://facebook.github.io/react/img/logo_og.png'}} // doesn't work

iOS 9 Facebook login simulator -canOpenURL: failed for URL: “fbauth2:///” - error: “(null)”

六月ゝ 毕业季﹏ 提交于 2019-11-26 20:41:34
I've updated to Xcode 7 and the latest iOS SDK. I've added the appropriate entries in my app's plist: My app's Facebook login works fine on device. However, on iOS 9 simulator, I'm getting: -canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" And login is not working. I've seen facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" but I have FBSDKCoreKit framework. I've also seen Facebook SDK 4.5 IOS 9 but it's answer doesn't solve my problem. Why am I getting this error on simulator and not on device even though I've done the checklist at https:/

How can I figure out which URL is being blocked by App Transport Security?

寵の児 提交于 2019-11-26 15:27:32
问题 I'm upgrading an iOS app to iOS 9, and I have some URLs that are not secure, and I need a few exceptions to App Transport Security. I've added the two that I know about, but there are some warnings happening now stating: App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file. I need to know what URLs are being blocked so I can add them to the Info.plist, they're probably images or

iOS9 getting error “an SSL error has occurred and a secure connection to the server cannot be made”

霸气de小男生 提交于 2019-11-26 14:16:01
Since I upgraded my existing project with iOS 9, I keep getting the error : An SSL error has occurred and a secure connection to the server cannot be made. Tony TRAN For the iOS9, Apple made a radical decision with iOS 9, disabling all unsecured HTTP traffic from iOS apps, as a part of App Transport Security (ATS) . To simply disable ATS, you can follow this steps by open Info.plist , and add the following lines: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> Even though allowing arbitrary loads ( NSAllowsArbitraryLoads = true ) is a good workaround,

iOS 9 Facebook login simulator -canOpenURL: failed for URL: “fbauth2:///” - error: “(null)”

那年仲夏 提交于 2019-11-26 09:02:53
问题 I\'ve updated to Xcode 7 and the latest iOS SDK. I\'ve added the appropriate entries in my app\'s plist: My app\'s Facebook login works fine on device. However, on iOS 9 simulator, I\'m getting: -canOpenURL: failed for URL: \"fbauth2:///\" - error: \"(null)\" And login is not working. I\'ve seen facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" but I have FBSDKCoreKit framework. I\'ve also seen Facebook SDK 4.5 IOS 9 but it\'s answer doesn\'t solve my problem.

iOS9 getting error “an SSL error has occurred and a secure connection to the server cannot be made”

微笑、不失礼 提交于 2019-11-26 08:51:25
问题 Since I upgraded my existing project with iOS 9, I keep getting the error : An SSL error has occurred and a secure connection to the server cannot be made. 回答1: For the iOS9, Apple made a radical decision with iOS 9, disabling all unsecured HTTP traffic from iOS apps, as a part of App Transport Security (ATS). To simply disable ATS, you can follow this steps by open Info.plist , and add the following lines: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <

kCFStreamErrorDomainSSL, -9802 when connecting to a server by IP address through HTTPS in iOS 9

此生再无相见时 提交于 2019-11-26 08:34:39
问题 We have an iOS app that connects to our server through HTTPS. When the app is built with the new iOS 9 SDK and ran under iOS 9, the following error occurs: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802) The app uses AFNetworking 1.3.4 with pinned certs. The problem occurs if I connect to the server with its IP address. It works if I add the NSAllowsArbitraryLoads config, or if I connect to the server with its domain name. The Tomcat connector is configured with