1. 在xcode中修改 `info.plist`

 

<key>NSAppTransportSecurity</key>    

<dict>
<-- 添加 Domain 忽略指定 url https 的请求 -->

  <key>NSExceptionDomains</key>

  <dict>
    <key>localhost</key>
    <dict>
      <key>NSExceptionAllowsInsecureHTTPLoads</key>
      <true/>
    </dict>
  </dict>

</dict>

 

相关文章:

  • 2022-02-07
  • 2021-08-09
  • 2021-07-28
  • 2021-11-19
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
猜你喜欢
  • 2022-02-14
  • 2021-07-31
  • 2021-12-02
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案