I have added App Transport Security in my app's Info.plist file, but when I tried to access this URL http://api.instagram.com/v1/users/self/media/recent?access_token=%@" it gives me an error:
我在我的应用程序的Info.plist文件中添加了App Transport Security,但是当我尝试访问此URL时http://api.instagram.com/v1/users/self/media/recent?access_token=%@“它给了我一个错误:
App 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.
App Transport Security已阻止明文HTTP(http://)资源加载,因为它不安全。可以通过应用程序的Info.plist文件配置临时例外。
3 个解决方案
#1
1
You probably have not configured App Transport Security Settings
the right way.
您可能没有以正确的方式配置App Transport Security设置。
Please double check you have something similar to the image below.
请仔细检查您是否有类似于下图的内容。
If that still does not work, you could try adding the domain itself as an exception. You'd use a configuration similar to the image below. (akamaihd.net
, facebook.com
and fbcdn.net
are just an example).
如果仍然无效,您可以尝试添加域本身作为例外。您将使用类似于下图的配置。 (akamaihd.net,facebook.com和fbcdn.net只是一个例子)。
#2
0
Please try with HTTPS URL:
请尝试使用HTTPS网址:
https://api.instagram.com/v1/users/self/media/recent?access_token=%@
Hope this helps.
希望这可以帮助。
#3
0
you have to ON keychain sharing from capabilities
你必须从功能上开启钥匙串共享
PROJECT NAME > CAPABILITIES > KEY CHAIN SHARING (ON)
#1
1
You probably have not configured App Transport Security Settings
the right way.
您可能没有以正确的方式配置App Transport Security设置。
Please double check you have something similar to the image below.
请仔细检查您是否有类似于下图的内容。
If that still does not work, you could try adding the domain itself as an exception. You'd use a configuration similar to the image below. (akamaihd.net
, facebook.com
and fbcdn.net
are just an example).
如果仍然无效,您可以尝试添加域本身作为例外。您将使用类似于下图的配置。 (akamaihd.net,facebook.com和fbcdn.net只是一个例子)。
#2
0
Please try with HTTPS URL:
请尝试使用HTTPS网址:
https://api.instagram.com/v1/users/self/media/recent?access_token=%@
Hope this helps.
希望这可以帮助。
#3
0
you have to ON keychain sharing from capabilities
你必须从功能上开启钥匙串共享
PROJECT NAME > CAPABILITIES > KEY CHAIN SHARING (ON)