Created
October 23, 2015 19:01
-
-
Save simonprickett/9c56415c97e5cab181f9 to your computer and use it in GitHub Desktop.
Cordova 5 / iOS 9 Security Blog - App Transport Security Hook Script
This file contains 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 | |
echo "Adjusting plist for App Transport Security exception." | |
val=$(/usr/libexec/plistbuddy -c "add NSAppTransportSecurity:NSExceptionDomains:api.fixer.io:NSTemporaryExceptionAllowsInsecureHTTPLoads bool true" platforms/ios/HelloCordova/HelloCordova-Info.plist 2>/dev/null) | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment