Skip to content

Commit 5b3e77c

Browse files
committed
Allow cleartext and system/user certificates
1 parent 63e0eab commit 5b3e77c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
android:icon="@mipmap/ic_launcher"
2323
android:label="@string/app_name"
2424
android:localeConfig="@xml/locales_config"
25+
android:networkSecurityConfig="@xml/network_security_config"
2526
android:roundIcon="@mipmap/ic_launcher_round"
2627
android:supportsRtl="true"
2728
android:theme="@style/Theme.MyApplication"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config xmlns:tools="http://schemas.android.com/tools">
3+
<base-config cleartextTrafficPermitted="true" tools:ignore="InsecureBaseConfiguration">
4+
<trust-anchors>
5+
<certificates src="system"/>
6+
<certificates src="user" tools:ignore="AcceptsUserCertificates" />
7+
</trust-anchors>
8+
</base-config>
9+
</network-security-config>

0 commit comments

Comments
 (0)