Ionic IOS访问http受到限制

错误:app

Application Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.    spa


解决方法:it

手动在 ”项目名-Info.plist“第一个<dict>标签下添加下面标签io

<key>NSAppTransportSecurity</key>file

    <dict>exception

      <key>NSAllowsArbitraryLoads</key>方法

      <true/>项目

    </dict>dict

相关文章
相关标签/搜索