美文网首页
ATS (NSAppTransportSecurity)白名单

ATS (NSAppTransportSecurity)白名单

作者: BearLin | 来源:发表于2017-03-16 23:20 被阅读0次

将myserver.com改成你的服务器地址

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSExceptionDomains</key>
        <dict>
            <key>myserver.com</key>
            <dict>
                <key>NSIncludesSubdomains</key>
                <true/>
                <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
                <true/>
            </dict>
                </dict>
    </dict>

http://stackoverflow.com 上相关问题的截图:

ATS (NSAppTransportSecurity)白名单.png

相关文章

网友评论

      本文标题:ATS (NSAppTransportSecurity)白名单

      本文链接:https://www.haomeiwen.com/subject/mtysnttx.html