Allow user certificate in production builds.
This commit is contained in:
parent
37618600d7
commit
3ded5ca38a
1 changed files with 9 additions and 10 deletions
|
|
@ -1,8 +1,15 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<network-security-config>
|
<network-security-config xmlns:tools="http://schemas.android.com/tools">
|
||||||
<!-- Ref: https://developer.android.com/training/articles/security-config.html -->
|
<!-- Ref: https://developer.android.com/training/articles/security-config.html -->
|
||||||
<!-- By default, do not allow clearText traffic -->
|
<!-- By default, do not allow clearText traffic -->
|
||||||
<base-config cleartextTrafficPermitted="false" />
|
<base-config cleartextTrafficPermitted="false">
|
||||||
|
<trust-anchors>
|
||||||
|
<certificates src="system" />
|
||||||
|
<certificates
|
||||||
|
src="user"
|
||||||
|
tools:ignore="AcceptsUserCertificates" />
|
||||||
|
</trust-anchors>
|
||||||
|
</base-config>
|
||||||
|
|
||||||
<!-- Allow clearText traffic on some specified host -->
|
<!-- Allow clearText traffic on some specified host -->
|
||||||
<domain-config cleartextTrafficPermitted="true">
|
<domain-config cleartextTrafficPermitted="true">
|
||||||
|
|
@ -24,12 +31,4 @@
|
||||||
<domain includeSubdomains="true">lan</domain>
|
<domain includeSubdomains="true">lan</domain>
|
||||||
<domain includeSubdomains="true">localdomain</domain>
|
<domain includeSubdomains="true">localdomain</domain>
|
||||||
</domain-config>
|
</domain-config>
|
||||||
|
|
||||||
<debug-overrides>
|
|
||||||
<trust-anchors>
|
|
||||||
<certificates src="system" />
|
|
||||||
<certificates src="user" />
|
|
||||||
</trust-anchors>
|
|
||||||
</debug-overrides>
|
|
||||||
|
|
||||||
</network-security-config>
|
</network-security-config>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue