Transport security is provided in iOS 9.0 or later, and in OS X v10.11 and later. by default only https calls only allowed in apps. To turn off App Transport Security add following lines in info.plist file.
adding some key in info.plist:
-
Open Project target's
info.plist
file -
Added a Key called
NSAppTransportSecurity
as aDictionary
. -
Added a Subkey called
NSAllowsArbitraryLoads
asBoolean
and set its value toYES
. - Clean the Project and Now Everything is Running fine as like before.
or
add the source code of info.list below:
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> <key>yourdomain.com</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/> </dict> </dict> </dict>
using NSAllowsArbitraryLoads = true
in the project's info.plist
allows all connection to any server to be insecure. If you want to make sure only a specific domain is accessible through an insecure connection, try this:
<key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict> <key>domain.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> <true/> <key>NSIncludesSubdomains</key> <true/> </dict> </dict> </dict>
this is from offcial documents describe below:
NSAppTransportSecurity (Dictionary - iOS, macOS) Use this key to describe your app’s intended HTTP connection behavior if you require exceptions from best security practices or you want to enable new security features.
On Apple platforms, a networking security feature called App Transport Security (ATS) is available to apps and app extensions, and is enabled by default. It improves privacy and data integrity by ensuring your app’s network connections employ only industry-standard protocols and ciphers without known weaknesses. This helps instill user trust that your app does not accidentally leak transmitted data to malicious parties.
By configuring this key’s value in your app’s Info.plist file, you can customize the security of your network connections in a variety of ways. You can:
Allow insecure communication with particular servers
Allow insecure loads for web views or for media, while maintaining ATS protections elsewhere in your app
Enable new security features such as Certificate Transparency
The NSAppTransportSecurity key is supported in iOS 9.0 and later and in macOS 10.11 and later, and is available in both apps and app extensions.
Starting in iOS 10.0 and later and in macOS 10.12 and later, the following subkeys are supported:
NSAllowsArbitraryLoadsForMedia
NSAllowsArbitraryLoadsInWebContent
NSRequiresCertificateTransparency
NSAllowsLocalNetworking
Note: There are two “allows arbitrary loads” keys and they employ different naming patterns. Take care to use …ForMedia and …InWebContent correctly.
相关推荐
oracle library oci.dll could not be loaded-附件资源
Aspose.word.dll文件,修复The document appears to be corrupted and cannot be loaded问题。 低版本的Aspose.word.dll动态链接库会存在这个bug,通过升级动态链接库就可以完美解决此问题,亲测有效,绝不忽悠你。
Navicat Premium 15 连接Oracle时提示oracle library is not loaded的问题解决,直接替换新文件就可以了
Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder! 问题的缺失文件 eclipse.buildId=M20100211-1343 java.version=1.6.0_10-rc2 java.vendor=Sun Microsystems Inc. ...
本补丁为PhotoShop CS5 或PhotoShop CS6 版本的文字引擎补丁,完美解决因为字体问题而导致的出错,原则上适用于所有版本,但如果真不适用,请百度搜索下载相应版本的补丁(TypeSupport),替换Adobe目录下面的...
coursera 吴恩达 deeplearning.ai 课程1neural-networks-deep-learning 第一周视频 带中文字幕
filecoin-ffi-Linux_16669127.tar.gz,lotus,拷贝到/tmp 目录下,不需要解压
ubuntu服务器端安装开源免费的LibreOffice,相关字体包和安装包下载
qt编译连接MYSQL出现QMYSQL driver not loaded 基本成为普遍现象,网络上大多数解决方案是重新编译驱动,亲身证实是可行方案之一。这里给出更简单的办法,适用于ubuntu,直接安装该deb包,就可以了。ubuntu16.04和...
Navicat 连接 oracle library is not loaded的解决方法
Navicat 远程连接 Oracle 时提示oracle library is not loaded 所需文件
runtime error R6002 -floating point support not loaded 将未出现过该错误的电脑中Keil的\ARM\ARMCC\bin\armlink.exe复制,覆盖掉报错电脑中的Keil安装目录下\ARM\ARMCC\bin\armlink.exe即可。每天出现该报错,...
快速启动notebook,免去输入代码的步骤,并且将文件放在哪个文件夹,主目录就显示哪个文件夹的内容,非常方便
ipython 是一个 python 的交互式 shell,比默认的python shell 好用得多,支持变量自动补全,自动缩进,支持 bash shell 命令,内置了许多很有用的功能和函数。在ubuntu 下只要 sudo apt-get install ipython 就装好...
Aspose.word.dll文件,修复The document appears to be corrupted and cannot be loaded问题。 低版本的Aspose.word.dll动态链接库会存在这个bug,通过升级动态链接库就可以完美解决此问题,亲测有效,绝不忽悠你。
cudart64_110 cufft64_10 cublas64_11 cublasLt64_11 cusolver64_11 curand64_10 cusparse64_11 cudnn64_8等
关于TensorFlow使用的ipython代码,义辅助函数来计算前向传播结果,使用ReLU做为激活函数
D3D11_SSAO.rar
+ The scrollbar did not get reset to the top when the user read in a new data file. Fixed. + The structure of the code has been undergone some major changes to ease porting to Windows 95 and ...