feat: 网络请求明文传输配置
This commit is contained in:
@@ -1,15 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
|
||||
<base-config cleartextTrafficPermitted="true">
|
||||
<base-config cleartextTrafficPermitted="false">
|
||||
<trust-anchors>
|
||||
<certificates src="system" />
|
||||
</trust-anchors>
|
||||
</base-config>
|
||||
|
||||
<domain-config cleartextTrafficPermitted="true">
|
||||
<!-- fengkongcloud.com 为默认值,如果通过 option.setUtl 设置的 url 为 http 连接(下小节将介绍),需要将此 url, 如 proxy.example.com 添加到 domain-config 中 -->
|
||||
<!-- fengkongcloud.com 为默认值,
|
||||
如果通过 option.setUtl 设置的 url 为 http 连接(下小节将介绍),
|
||||
需要将此 url, 如 proxy.example.com 添加到 domain-config 中 -->
|
||||
<domain includeSubdomains="true">fengkongcloud.com</domain>
|
||||
|
||||
<!-- 记得移除测试用代码,正式包 别包含进去 -->
|
||||
<domain includeSubdomains="true">beta.api.molistar.xyz</domain>
|
||||
<domain includeSubdomains="true">beta.img.pekolive.com</domain>
|
||||
</domain-config>
|
||||
|
||||
<domain-config cleartextTrafficPermitted="false">
|
||||
<domain includeSubdomains="true">api.molistar.xyz</domain>
|
||||
</domain-config>
|
||||
|
||||
</network-security-config>
|
Reference in New Issue
Block a user