File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 67
67
android : allowBackup =" true"
68
68
android : icon =" @mipmap/ic_launcher"
69
69
android : label =" @string/app_name"
70
- android : theme =" @style/AppTheme" >
70
+ android : theme =" @style/AppTheme"
71
+ android : networkSecurityConfig =" @xml/network_security_config" >
71
72
<activity
72
73
android : name =" .MainActivity"
73
74
android : exported =" true"
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <!-- This config was created to address: https://github.com/zulip/zulip-mobile/issues/3312 -->
3
+ <network-security-config >
4
+ <base-config >
5
+ <!-- Trusting user-supplied CAs now requires opt-in, and we are doing so here -->
6
+ <trust-anchors >
7
+ <certificates src =" system" />
8
+ <certificates src =" user" />
9
+ </trust-anchors >
10
+ </base-config >
11
+ <domain-config >
12
+ <!-- Do not trust user-supplied certs for the following Zulip-owned domains (including subdomains) -->
13
+ <domain includeSubdomains =" true" >zulipchat.com</domain >
14
+ <domain includeSubdomains =" true" >zulip.org</domain >
15
+ <domain includeSubdomains =" true" >zulip.com</domain >
16
+ <trust-anchors ><certificates src =" system" /></trust-anchors >
17
+ </domain-config >
18
+ </network-security-config >
19
+ <!-- Reference: https://developer.android.com/training/articles/security-config#FileFormat -->
You can’t perform that action at this time.
0 commit comments