当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - Webview not working with iOS9

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: