Skip to content

Commit b070074

Browse files
committed
docs: readme
1 parent c80e0ef commit b070074

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)