<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <!-- 允许对本地开发服务器的明文HTTP通信 -->
    <domain-config cleartextTrafficPermitted="true">
        <!-- 允许本地IP地址 -->
        <domain includeSubdomains="true">192.168.1.107</domain>
        <domain includeSubdomains="true">localhost</domain>
        <domain includeSubdomains="true">127.0.0.1</domain>
        <domain includeSubdomains="true">10.0.2.2</domain>
        <!-- 允许所有192.168.x.x网段的本地IP（开发环境） -->
        <domain includeSubdomains="true">192.168.0.0</domain>
        <domain includeSubdomains="true">192.168.1.0</domain>
        <domain includeSubdomains="true">192.168.2.0</domain>
    </domain-config>
</network-security-config>

