Skip to content

Commit 7b61a96

Browse files
wddwyccfacebook-github-bot
authored andcommitted
setNSAllowsArbitraryLoads to false by default in template (#28885)
Summary: Since we already have `localhost` as`Exception Domains` in NSAppTransportSecurity to allow connect to dev server, the template should set `NSAllowsArbitraryLoads` to false by default, as exaplained in [Apple's document](https://developer.apple.com/documentation/bundleresources/information_property_list/nsapptransportsecurity/nsallowsarbitraryloads) as a good practice. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [iOS] [enhancement] - set `NSAllowsArbitraryLoads` to `false` by default in template Pull Request resolved: #28885 Differential Revision: D21624042 Pulled By: shergin fbshipit-source-id: 690afcd037c3f328d293ef4475380a28efd9fee6
1 parent 8ac467c commit 7b61a96

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

template/ios/HelloWorld/Info.plist

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
<true/>
2727
<key>NSAppTransportSecurity</key>
2828
<dict>
29-
<key>NSAllowsArbitraryLoads</key>
30-
<true/>
3129
<key>NSExceptionDomains</key>
3230
<dict>
3331
<key>localhost</key>

0 commit comments

Comments
 (0)