Guest User

Untitled

a guest
Jul 17th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <!-- Debemos definir un nuevo archivo dentro de los resources del proyecto res/xml/network_security_config.xml -->
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <network-security-config>
  4. <base-config>
  5. <trust-anchors>
  6. <certificates src="system" />
  7. </trust-anchors>
  8. </base-config>
  9.  
  10. <debug-overrides>
  11. <trust-anchors>
  12. <certificates src="user" />
  13. </trust-anchors>
  14. </debug-overrides>
  15. </network-security-config>
  16.  
  17. <!-- Luego debemos de modificar nuestro archivo (debug) manifest para que incluya este archivo -->
  18. <?xml version="1.0" encoding="utf-8"?>
  19. <manifest ... >
  20. <application android:networkSecurityConfig="@xml/network_security_config"
  21. ... >
  22. ...
  23. </application>
  24. </manifest>
Add Comment
Please, Sign In to add comment