FlutterUnit icon indicating copy to clipboard operation
FlutterUnit copied to clipboard

+0025 [网络异常-证书] Insecure HTTP is not allowed by platform

Open toly1994328 opened this issue 4 years ago • 2 comments

平台问题: Android9之后 默认只能使用https前期

toly1994328 avatar Sep 15 '20 02:09 toly1994328

解决方案:在AndroidManifest.xml中application节点配置

android:usesCleartextTraffic="true"

11391600137734_ pic

toly1994328 avatar Sep 15 '20 02:09 toly1994328

iOS解决方案,偷懒的简单方法是直接禁用(生产环境不推荐,因为不安全),详情请看 how-can-i-add-nsapptransportsecurity-to-my-info-plist-file

how-can-i-add-nsapptransportsecurity-to-my-info-plist-file

Johnnie-198312 avatar Jan 04 '21 07:01 Johnnie-198312