Ios NSAllowarBitraryLoadInWebContent禁用internet连接
我正在使用设置为Ios NSAllowarBitraryLoadInWebContent禁用internet连接,ios,objective-c,iphone,xcode,Ios,Objective C,Iphone,Xcode,我正在使用设置为YES的NSAllowArbitraryLoads标志,我的一个广告提供商告诉我,我需要在Web内容中添加NSAllow任意加载设置为YES。 但当我这么做的时候,很多请求给我带来了这个错误: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection. 你知道我该如何处理这个问题吗?你能分享你在webview
YES
的NSAllowArbitraryLoads
标志,我的一个广告提供商告诉我,我需要在Web内容中添加NSAllow任意加载
设置为YES
。
但当我这么做的时候,很多请求给我带来了这个错误:
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
你知道我该如何处理这个问题吗?你能分享你在webview中打开的URL吗?@Pushkraj我收到的每个http请求都有这个错误,这意味着所有请求都将通过ssl和https@MTA如果将
NSAllowArbitraryLoads
设置为YES
,然后,您只能访问应用程序的https服务器URL和web服务。您可以共享您在webview中打开的URL吗?@Pushkraj我发现每个http请求都有此错误,这意味着所有请求都将使用ssl和https@MTA如果将NSAllowArbitraryLoads
设置为YES
,然后,您只能访问应用程序的https服务器URL和web服务。