Last active
August 6, 2023 07:31
-
-
Save mlynch/284699d676fe9ed0abfa to your computer and use it in GitHub Desktop.
Disable App Transport Security in iOS 9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
This disables app transport security and allows non-HTTPS requests. | |
Note: it is not recommended to use non-HTTPS requests for sensitive data. A better | |
approach is to fix the non-secure resources. However, this patch will work in a pinch. | |
To apply the fix in your Ionic/Cordova app, edit the file located here: | |
platforms/ios/MyApp/MyApp-Info.plist | |
And add this XML right before the end of the file inside of the last </dict> entry: | |
PASTE HERE | |
</dict> | |
</plist> | |
--> | |
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSAllowsArbitraryLoads</key><true/> | |
</dict> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checkout my solution
https://stackoverflow.com/questions/53160329/ionic-nsallowsarbitraryloads-to-false/58024816#58024816