[ad_1]
in train https://github.com/Mairoslav/5networkAndGDC/tree/predominant/ImageRequest I wish to enable the jpg to be loaded from the site with “http” scheme by adjusting NSAppTransportSecurity in Data.plist as written beneath. I don’t wish to enable another “http” websites, subsequently opted to set NSAllowsArbitraryLoads to false. In case you can recommendation.
<dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<false/>
<key>NSExceptionDomains</key>
<dict>
<key>www.kittenswhiskers.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.0</string>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
</dict>
</dict>
Even after these changes, there’s an error: “The useful resource couldn’t be loaded as a result of the App Transport Safety coverage requires using a safe connection.” I’ve tried all various choices for NSExceptionMinimumTLSVersion. The sources I used to be utilizing had been: https://agilie.com/weblog/how-to-add-domain-exceptions-to-comply-with-apples-new-ats-requirements, https://cocoacasts.com/how-to-add-app-transport-security-exception-domains and https://developer.apple.com/documentation/bundleresources/information_property_list/nsapptransportsecurity
[ad_2]
