Xcode提示如下:
“App Transport Security has blocked a cleartext HTTP (http://) resource load since it isinsecure. Temporary exceptions can be configured via your app's Info.plistfile.”
简而言之:ATS禁止了HTTP的明文传输,因为它不安全。可以修改Info.plist文件,让它v临时允许明文传输。
解决办法:
在Info.plist文件中添加"App Transport Security Settings", Type为"Dictionary",再添加"Allow Arbitray Loads", Type 为"Boolean",“Value”为“YES”即可。
“App Transport Security has blocked a cleartext HTTP (http://) resource load since it isinsecure. Temporary exceptions can be configured via your app's Info.plistfile.”
简而言之:ATS禁止了HTTP的明文传输,因为它不安全。可以修改Info.plist文件,让它v临时允许明文传输。
解决办法:
在Info.plist文件中添加"App Transport Security Settings", Type为"Dictionary",再添加"Allow Arbitray Loads", Type 为"Boolean",“Value”为“YES”即可。
本文介绍了如何解决Xcode中App Transport Security (ATS)阻止HTTP明文传输的问题。通过在Info.plist文件中添加特定配置,可以临时允许HTTP加载,确保应用正常运行。
760

被折叠的 条评论
为什么被折叠?



