问题描述:

This question already has an answer here:

  • Transport security has blocked a cleartext HTTP

    28 answers

网友答案:

You have to add this in your .plist file

  1. Add a NSAppTransportSecurity : Dictionary.
  2. Add Subkey named " NSAllowsArbitraryLoads " as Boolean : YES

Hopefully this will help you.

网友答案:

Set the NSAllowsArbitraryLoads key to YES under NSAppTransportSecurity dictionary in your .plist file. If NSAppTransportSecurity not exist manually write it.

相关阅读:
Top