Skip to content

Instantly share code, notes, and snippets.

@NekoTashi
Created October 21, 2015 06:46
Show Gist options
  • Select an option

  • Save NekoTashi/a8c7fb7431e55851d93a to your computer and use it in GitHub Desktop.

Select an option

Save NekoTashi/a8c7fb7431e55851d93a to your computer and use it in GitHub Desktop.
For Ionic to disable secure connect
#!/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