App Transport Security被阻止

时间:2015-10-12 15:33:06

标签: ios objective-c xcode

我正在尝试为某些硬件域启用连接,并且我获得了新的iOS9安全消息。

我已在http://192.168.4.1中启用了域info.plist,但仍然收到此消息。

我的plist是:

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>http://192.168.4.1</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSExceptionRequiresForwardSecrecy</key>
            <false/>
            <key>NSExceptionMinimumTLSVersion</key>
            <string>TLSv1.2</string>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
            <key>NSThirdPartyExceptionMinimumTLSVersion</key>
            <string>TLSv1.2</string>
            <key>NSRequiresCertificateTransparency</key>
            <false/>
        </dict>
    </dict>
</dict>

1 个答案:

答案 0 :(得分:0)

在info.plist中添加所有密钥...&amp;跑......我可能帮了......

enter image description here