Skip to content

Commit b30c067

Browse files
authored
Merge pull request #6 from TheOneValen/feature/allow_user_cerrtificate
Allow user certificates
2 parents d152e66 + 56f077d commit b30c067

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
android:label="@string/app_name"
1414
android:supportsRtl="true"
1515
android:theme="@style/AppTheme"
16-
android:usesCleartextTraffic="true">
16+
android:usesCleartextTraffic="true"
17+
android:networkSecurityConfig="@xml/network_security_config">
1718

1819
<activity android:name=".activity.ChooseUrlActivity" />
1920
<activity
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config xmlns:tools="http://schemas.android.com/tools">
3+
<base-config>
4+
<trust-anchors>
5+
<certificates src="system"/>
6+
<certificates src="user"
7+
tools:ignore="AcceptsUserCertificates" />
8+
</trust-anchors>
9+
</base-config>
10+
</network-security-config>

0 commit comments

Comments
 (0)