gpt4 book ai didi

Xcode swift 错误 App Transport Security 已阻止明文 HTTP

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:28:08 27 4
gpt4 key购买 nike

我已将所需的值添加到我的 .plist 文件中,如下面的屏幕截图所示

Xcode Screenshot

但我仍然得到这个错误:

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.

还有什么可能导致此问题?

enter image description here

显示以下所有错误

{ URL: http://example.com } 2015-10-21 00:20:30.694 SwiftSignatureSystem[1226:36450] 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. fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSUnderlyingError=0x7fd33c8951e0 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSErrorFailingURLStringKey=http://example.com, NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., NSErrorFailingURLKey=http://example.com}}, NSErrorFailingURLStringKey=http://example.com, NSErrorFailingURLKey=http://example.com, NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.0.59/src/swift/stdlib/public/core/ErrorType.swift, line 50

最佳答案

这似乎是一个混合内容问题。

Mixed content in Chrome and IE

如果您的用户代理在 HTTPS 下加载页面,它应该拒绝加载不安全的项目。

关于Xcode swift 错误 App Transport Security 已阻止明文 HTTP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33238078/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com