Skip to content

Instantly share code, notes, and snippets.

@simonprickett
Created October 23, 2015 19:01
Show Gist options
  • Save simonprickett/9c56415c97e5cab181f9 to your computer and use it in GitHub Desktop.
Save simonprickett/9c56415c97e5cab181f9 to your computer and use it in GitHub Desktop.
Cordova 5 / iOS 9 Security Blog - App Transport Security Hook Script
#!/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