我正在将payUmoney集成到我的应用程序中。对于9 cleartextTrafficPermitted=以上的安卓系统,默认情况下为false。所以我得到了以下错误-
The webpage at hhtp://180.179.174.15:3000/pgSimulator/axis/redirect could not be loaded because: net::ERR_CLEARTEXT_NOT_PERMITTED
因此在network_secrity_config.xml中,我将其更改为true,如下所示--
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true"/>
</network-security-config>
现在Android演播室展示了
Setting <base-config cleartextTrafficPermitted="true"/> is not recommended.
现在是否可以安全地将其设置为false?如果我不将它设置为false。PayUmoney不工作。那么现在该怎么办呢?
发布于 2019-11-17 14:43:50
要么使用
<application
...
android:usesCleartextTraffic="true">
....
</application>
或者像下面这样对域进行配置:
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">Your_domain</domain>
</domain-config>
</network-security-config>
https://stackoverflow.com/questions/58898140
复制相似问题