app-transport-security

ATS App Transport Security: HTTP url inside Webview

不问归期 提交于 2019-12-06 10:09:08
问题 We have an app which shows HTML content in Webview. Currently the content served to Webview is from non secured domain. From iOS10, it supposed to serve from secured domain so before migrating want to clear some doubts. Do the secured HTML page(https) should have CSS and JS links from secured sever too? As some CSS and JS might be from third server. If the secured HTML page(https) is loaded into Webview and had some links which are not secured(http), will those links load in Webview when user

Switching from http to https in iOS App brings up Export Compliance issues when publishing

两盒软妹~` 提交于 2019-12-06 04:02:36
问题 We recently decided to update a couple of our apps this summer to switch them from http to https in order to follow the new Apple guidelines which go into affect January 2017. The only thing transferred to and from the app is product information, no user info or anything even remotely sensitive. But we want to comply early so that we don't have to worry about it later. The question: Apple seems to be forcing us to deal with US Export Compliance law which requires us to get an approval for an

How to Enable TLS 1.2, 1.1,1.0, and SSL in iOS app?

蹲街弑〆低调 提交于 2019-12-05 04:07:06
My question is related to Apple Transport Security (ATS) and I am too much confused. I want to support all the protocols (all version of TLS and SSL) in my swift app. If I change NSAllowsArbitraryLoads to false, will app work on all protocols by default? Or do I have to specify domain in configuration and add NSExceptionMinimumTLSVersion? <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <false/> <key>NSExceptionDomains</key> <dict> <key>your.servers.domain.here</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSExceptionRequiresForwardSecrecy</key> <false/>

App Transport Security verbose

旧城冷巷雨未停 提交于 2019-12-05 02:53:00
问题 Is there a way to make App transport security more verbose? When my app makes an http call I will get notified in the Xcode console. However it doesn't tell me which http request is triggering the app transport security warning. Is there a way to make the warning more verbose such that it includes the URL that triggered the warning? 回答1: You can get this information by bumping up the CFNETWORK_DIAGNOSTICS level You can set it in your scheme's environment variables like so: Or you can set it

ATS App Transport Security: HTTP url inside Webview

天大地大妈咪最大 提交于 2019-12-04 17:58:54
We have an app which shows HTML content in Webview. Currently the content served to Webview is from non secured domain. From iOS10, it supposed to serve from secured domain so before migrating want to clear some doubts. Do the secured HTML page(https) should have CSS and JS links from secured sever too? As some CSS and JS might be from third server. If the secured HTML page(https) is loaded into Webview and had some links which are not secured(http), will those links load in Webview when user taps on it? Thanks in advance for your help. I did a quick test and it appears that any referenced

Switching from http to https in iOS App brings up Export Compliance issues when publishing

百般思念 提交于 2019-12-04 07:01:13
We recently decided to update a couple of our apps this summer to switch them from http to https in order to follow the new Apple guidelines which go into affect January 2017. The only thing transferred to and from the app is product information, no user info or anything even remotely sensitive. But we want to comply early so that we don't have to worry about it later. The question: Apple seems to be forcing us to deal with US Export Compliance law which requires us to get an approval for an Exporter Registration Number (ERN) , and a SNAP-R which requires a Company Identification Number (CIN)

Is it safe to add localhost to App Transport Security (ATS) NSExceptionDomains?

[亡魂溺海] 提交于 2019-12-02 19:05:12
Is it safe, in terms of security, to add localhost to ATS NSExceptionDomains for development use? It's not very convenient (and it's easy to forget) to remove those lines from Info.plist file before every commit. <dict> <key>NSExceptionDomains</key> <dict> <key>localhost</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> <true/> </dict> </dict> </dict> Additionally, can Apple reject the application because of this? Joseph You can now do this for local addresses: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsLocalNetworking</key>

Allow HTTP without disabling ATS in iOS

走远了吗. 提交于 2019-12-01 13:59:39
I am developing an app which have a small tweak in it. it will show a preview of the given url (like Facebook,whatsapp does). but if the "User-given" url is in HTTP, I couldn't load the preview when ATS is turned on. so i turned off the whole HTTPS traffic by using NSAllowsArbitraryLoads . is there any way to allow http with ATS enabled? According to Apple , if you build against an older SDK, so iOS 8 or earlier, then ATS is disabled. I don't know exactly what this means, but I'm guessing it is the target build setting Architectures, Base SDK -- not the deployment target setting. This video

Allow HTTP without disabling ATS in iOS

心不动则不痛 提交于 2019-12-01 12:25:04
问题 I am developing an app which have a small tweak in it. it will show a preview of the given url (like Facebook,whatsapp does). but if the "User-given" url is in HTTP, I couldn't load the preview when ATS is turned on. so i turned off the whole HTTPS traffic by using NSAllowsArbitraryLoads . is there any way to allow http with ATS enabled? 回答1: According to Apple, if you build against an older SDK, so iOS 8 or earlier, then ATS is disabled. I don't know exactly what this means, but I'm guessing

“an ssl error has occurred and a secure connection to the server cannot be made” connecting to Internal Development Server on phone only

梦想与她 提交于 2019-12-01 02:24:28
问题 I developed a iOS app that connects to a internal web server. When I used the simulator, it works fine, but when I build the same app on a iPhone, it gives me a error message “an ssl error has occurred and a secure connection to the server cannot be made. " Why the error only occurs on iPhone not in simulator? Here is my environment Xcode 8.2 iOS 10.3 Objective C -- My client code is using ATS by default AFNetworking Framework 3.1 Web Server -- Support TLS 1.2 only Web Server Cert is not