diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2021-10-30 11:48:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-30 11:48:39 +0200 |
commit | 37cc538dbd7b78569db85bf21ed149c56f876db9 (patch) | |
tree | bdbc3112bec2b328b7d0bbe0847ee4b29e009ca4 /app/src/main | |
parent | 345aad4148f133477e40c232a8e855dfd28e0654 (diff) | |
parent | f62a97cb7ab52b893343c01d38acaad11b32a430 (diff) | |
download | AntennaPod-37cc538dbd7b78569db85bf21ed149c56f876db9.zip |
Merge pull request #5501 from ByteHamster/ca-certs
Allow connecting to pages signed with user CA
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/AndroidManifest.xml | 3 | ||||
-rw-r--r-- | app/src/main/res/xml/network_security_config.xml | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 47648f9d3..ba45c7997 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -40,7 +40,8 @@ android:supportsRtl="true" android:logo="@mipmap/ic_launcher" android:resizeableActivity="true" - android:allowAudioPlaybackCapture="true"> + android:allowAudioPlaybackCapture="true" + android:networkSecurityConfig="@xml/network_security_config"> <meta-data android:name="android.webkit.WebView.MetricsOptOut" diff --git a/app/src/main/res/xml/network_security_config.xml b/app/src/main/res/xml/network_security_config.xml new file mode 100644 index 000000000..d4c3fc996 --- /dev/null +++ b/app/src/main/res/xml/network_security_config.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<network-security-config xmlns:tools="http://schemas.android.com/tools"> + <base-config cleartextTrafficPermitted="true" tools:ignore="InsecureBaseConfiguration"> + <trust-anchors> + <certificates src="user" tools:ignore="AcceptsUserCertificates"/> + <certificates src="system" /> + </trust-anchors> + </base-config> +</network-security-config> |