iOS支持http连接

右击info.plis 点击open as Source  在文件中复制这段话即可(作为笔记,留作查看备用)

<key>NSAppTransportSecurity</key>

<dict>

<key>NSAllowsArbitraryLoads</key>

<true/>

<key>NSExceptionDomains</key>

<dict>

<key>s3.cn-north-1.amazonaws.com.cn</key>

<dict>

<key>NSExceptionRequiresForwardSecrecy</key>

<false/>

</dict>

</dict>

</dict>


猜你喜欢

转载自blog.csdn.net/u010670117/article/details/52211271