Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/102.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios NSAllowarBitraryLoadInWebContent禁用internet连接_Ios_Objective C_Iphone_Xcode - Fatal编程技术网

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服务。