Android安全性

网络安全性配置

1
2
3
4
5
<!-- res/xml/network_security_config.xml -->
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>
1
2
3
<application
android:networkSecurityConfig="@xml/network_security_config"
>