App Transport Security policy requires the use of a secure connection

后端 未结 2 637
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-25 01:55

I added the NsAppTransportSecurity as dictionary and added the key NsAllowArbitaryLoads exactly how everybody said but it does not work for me. I made

相关标签:
2条回答
  • 2021-01-25 02:29

    It should be done like this

    NSAppTransportSecurity <- Type Dictionary NSAllowsArbitraryLoads <- Type Boolean Value YES

    0 讨论(0)
  • 2021-01-25 02:32

    It should be done like:

    <key>NSAppTransportSecurity</key>
        <dict>
            <key>NSExceptionDomains</key>
            <dict>
                <key>your.domain.name.net</key>
                <dict>
                    <key>NSExceptionAllowsInsecureHTTPLoads</key>
                    <true/>
                    <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
                    <true/>
                </dict>
            </dict>
        </dict>
    
    0 讨论(0)
提交回复
热议问题