From 7b61a968fd774a6ca2196a731b6cec4282ab25cc Mon Sep 17 00:00:00 2001 From: duan Date: Mon, 18 May 2020 12:28:46 -0700 Subject: [PATCH] set`NSAllowsArbitraryLoads` 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 [iOS] [enhancement] - set `NSAllowsArbitraryLoads` to `false` by default in template Pull Request resolved: https://github.com/facebook/react-native/pull/28885 Differential Revision: D21624042 Pulled By: shergin fbshipit-source-id: 690afcd037c3f328d293ef4475380a28efd9fee6 --- template/ios/HelloWorld/Info.plist | 2 -- 1 file changed, 2 deletions(-) diff --git a/template/ios/HelloWorld/Info.plist b/template/ios/HelloWorld/Info.plist index 20f7dd5114c9c5..948d58224f9473 100644 --- a/template/ios/HelloWorld/Info.plist +++ b/template/ios/HelloWorld/Info.plist @@ -26,8 +26,6 @@ NSAppTransportSecurity - NSAllowsArbitraryLoads - NSExceptionDomains localhost