mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-19 19:42:17 +02:00
Allow connections to user-trusted CAs
For custom sync servers. Closes #5423
This commit is contained in:
parent
bfa2ed4799
commit
c58a38a804
@ -84,7 +84,8 @@
|
||||
android:label="@string/app_name"
|
||||
android:windowSoftInputMode="adjustResize"
|
||||
android:usesCleartextTraffic="true"
|
||||
android:largeHeap="true">
|
||||
android:largeHeap="true"
|
||||
android:networkSecurityConfig="@xml/network_security_config">
|
||||
<activity
|
||||
android:name="com.ichi2.anki.IntentHandler"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize|locale"
|
||||
|
11
AnkiDroid/src/main/res/xml/network_security_config.xml
Normal file
11
AnkiDroid/src/main/res/xml/network_security_config.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<base-config>
|
||||
<trust-anchors>
|
||||
<!-- Trust preinstalled CAs -->
|
||||
<certificates src="system" />
|
||||
<!-- Additionally trust user added CAs -->
|
||||
<certificates src="user" />
|
||||
</trust-anchors>
|
||||
</base-config>
|
||||
</network-security-config>
|
Loading…
Reference in New Issue
Block a user