Member-only story
Transport security has blocked a cleartext HTTP Swift (iOS)
1 min readOct 6, 2020
Just the key-value pair in your info.plist
You can also add it by open as source code:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>example.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
</dict>