Created
September 15, 2015 14:44
-
-
Save flpwgr/6e73a3d52607288f64b5 to your computer and use it in GitHub Desktop.
Cordova Hook for App Transport Security iOS 9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PLIST=platforms/ios/*/*-Info.plist | |
cat << EOF | | |
Add :NSAppTransportSecurity dict | |
Add :NSAppTransportSecurity:NSAllowsArbitraryLoads bool YES | |
EOF | |
while read line | |
do | |
/usr/libexec/PlistBuddy -c "$line" $PLIST | |
done | |
true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My app will be allowing users to enter a domain to connect to my custom Node.js server they would install. Is that a good exception to the App Transport Security feature? I have custom logic to verify they are connected to a port running my service and not some random HTTP apache host.