Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Debemos definir un nuevo archivo dentro de los resources del proyecto res/xml/network_security_config.xml -->
- <?xml version="1.0" encoding="utf-8"?>
- <network-security-config>
- <base-config>
- <trust-anchors>
- <certificates src="system" />
- </trust-anchors>
- </base-config>
- <debug-overrides>
- <trust-anchors>
- <certificates src="user" />
- </trust-anchors>
- </debug-overrides>
- </network-security-config>
- <!-- Luego debemos de modificar nuestro archivo (debug) manifest para que incluya este archivo -->
- <?xml version="1.0" encoding="utf-8"?>
- <manifest ... >
- <application android:networkSecurityConfig="@xml/network_security_config"
- ... >
- ...
- </application>
- </manifest>
Add Comment
Please, Sign In to add comment