Skip to content

Instantly share code, notes, and snippets.

@beilly
Last active August 20, 2019 02:03
Show Gist options
  • Save beilly/0ee26f4eceac5fca883239a9cef24d0e to your computer and use it in GitHub Desktop.
Save beilly/0ee26f4eceac5fca883239a9cef24d0e to your computer and use it in GitHub Desktop.
Android Security Config
android:networkSecurityConfig="@xml/security_config"
<?xml version="1.0" encoding="utf-8"?>
<network-security-config xmlns:android="http://schemas.android.com/apk/res/android">
<base-config cleartextTrafficPermitted="true">
</base-config>
<debug-overrides>
<trust-anchors>
<certificates src="user" />
</trust-anchors>
</debug-overrides>
</network-security-config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment