]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/res/xml/network_security_config.xml
Release 3.19.3.
[PrivacyBrowserAndroid.git] / app / src / main / res / xml / network_security_config.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   SPDX-License-Identifier: GPL-3.0-or-later
5   SPDX-FileCopyrightText: 2018, 2020, 2022 Soren Stoutner <soren@stoutner.com>
6
7   This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android/>.
8
9   This program is free software: you can redistribute it and/or modify it under
10   the terms of the GNU General Public License as published by the Free Software
11   Foundation, either version 3 of the License, or (at your option) any later
12   version.
13
14   This program is distributed in the hope that it will be useful, but WITHOUT
15   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16   FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17   details.
18
19   You should have received a copy of the GNU General Public License along with
20   this program.  If not, see <https://www.gnu.org/licenses/>. -->
21
22 <network-security-config xmlns:tools="http://schemas.android.com/tools">
23     <!-- Allow HTTP traffic and disable HSTS, which has no benefit for Privacy Browser (because unspecified links default to HTTPS) but has negative fingerprinting implications. -->
24     <base-config
25         cleartextTrafficPermitted="true"
26         hstsEnforced="false"
27         tools:ignore="InsecureBaseConfiguration" >
28
29         <trust-anchors>
30             <!-- Trust system certificate authorities. -->
31             <certificates src="system" />
32
33             <!-- Trust user certificate authorities. -->
34             <certificates src="user" tools:ignore="AcceptsUserCertificates" />
35         </trust-anchors>
36     </base-config>
37 </network-security-config>