File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,18 @@ iOS 使用 LaunchScreen.storyboard,使用 Xcode 修改即可。
303303[ 看这里] ( https://reactnative.cn/docs/signed-apk-android/ ) 。
304304
305305### Using fetch to get/post on a HTTPS web server which is using a valid and trusted but not public CA.
306- [ 看这里] ( https://github.com/facebook/react-native/issues/32931 ) 。
306+
307+ 1 . Edit the android/app/src/main/AndroidManifest.xml
308+ 2 . Add the android: networkSecurityConfig ="@xml /network_security_config" to the <application /> tag
309+ 3 . Create the folder android/app/src/main/res/xml and inside a file called network_security_config.xml
310+ ``` xml
311+ <?xml version =" 1.0" encoding =" utf-8" ?>
312+ <network-security-config >
313+ <base-config cleartextTrafficPermitted =" true" />
314+ </network-security-config >
315+ ```
316+ - [https://github.com/facebook/react-native/issues/32931](https://github.com/facebook/react-native/issues/32931)
317+ - [https://developer.android.com/training/articles/security-config](https://developer.android.com/training/articles/security-config)
307318
308319## Dependencies
309320
You can’t perform that action at this time.
0 commit comments