Skip to content

Instantly share code, notes, and snippets.

View andrescalco's full-sized avatar

André Felipe Scalco andrescalco

  • Borrowell
  • Winnipeg, MB, Canada
View GitHub Profile
@andrescalco
andrescalco / package.json
Created May 25, 2018 16:22
Add/Remove NSAppTransportSecurity rule for localhost on React Native ios project
"scripts": {
"enable_local": "plutil -insert NSAppTransportSecurity -xml \"<dict><key>NSExceptionDomains</key><dict><key>localhost</key><dict><key>NSExceptionAllowsInsecureHTTPLoads</key><true/></dict></dict></dict>\" ios/myProject/Info.plist",
"remove_local": "plutil -remove NSAppTransportSecurity ios/myProject/Info.plist"
},