https白名单设置

来源:互联网 发布:uu加速器for mac 编辑:程序博客网 时间:2024/05/02 01:25

现在网络请求设计到http协议加密的话,很多公司采用的网址前缀是https

在iOS 开发中,如果使用https访问后台的话需要进行白名单设置,具体步骤:

info.plist中添加

App Transport Security Settings   (格式为字典)

里面添加

Allow Arbitrary Loads(bool类型,设置为 yes);

0 0