Skip to content

Instantly share code, notes, and snippets.

@MadeBugs
Last active December 1, 2022 05:49
Show Gist options
  • Save MadeBugs/a937987959ab7dd08c2b5d4f335a2351 to your computer and use it in GitHub Desktop.
Save MadeBugs/a937987959ab7dd08c2b5d4f335a2351 to your computer and use it in GitHub Desktop.
[设置允许HTTP请求] iOS
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>www.baidu.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment