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

相關文章
相關標籤/搜索