From f0d82e700cd7fbd4c7d5380366943f816aba3c86 Mon Sep 17 00:00:00 2001 From: Markus Koas Date: Mon, 28 Aug 2023 18:36:21 +0000 Subject: [PATCH 1/2] Allow user defined CAs from Android CA store --- android/src/main/AndroidManifest.xml | 1 + android/src/main/res/xml/network_security_config.xml | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 android/src/main/res/xml/network_security_config.xml diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 294d5b3c6..1dd02a063 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -32,6 +32,7 @@ android:supportsRtl="true" android:theme="@style/Theme.MaterialComponents" android:usesCleartextTraffic="true" + android:networkSecurityConfig="@xml/network_security_config" tools:ignore="GoogleAppIndexingWarning" tools:targetApi="tiramisu"> + + + + + + + + \ No newline at end of file -- GitLab From c9bfb54cbe2b7ac868e01df78e65e384166174c1 Mon Sep 17 00:00:00 2001 From: Markus Koas Date: Mon, 28 Aug 2023 18:47:30 +0000 Subject: [PATCH 2/2] Permit cleartext traffix --- android/src/main/res/xml/network_security_config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/res/xml/network_security_config.xml b/android/src/main/res/xml/network_security_config.xml index 96f416d75..7818eb8a3 100644 --- a/android/src/main/res/xml/network_security_config.xml +++ b/android/src/main/res/xml/network_security_config.xml @@ -1,6 +1,6 @@ - + -- GitLab