Skip to content

Instantly share code, notes, and snippets.

Avatar

André Felipe Scalco andrescalco

View GitHub Profile
@andrescalco
andrescalco / package.json
Created May 25, 2018
Add/Remove NSAppTransportSecurity rule for localhost on React Native ios project
View package.json
"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"
},
You can’t perform that action at this time.