gpt4 book ai didi

ios - Cordova IOS = >' Failed to load resource: An SSL error has occurred'

转载 作者:太空宇宙 更新时间:2023-11-03 14:46:12 26 4
gpt4 key购买 nike

我正在使用 visual studio cordova,我们嵌入了一个 Iframe。在 android 上它工作正常,但在 Ios (9+) 上:

Failed to load resource: An SSL error has occurred and a secure connection to `the server cannot be made.

我读过其他建议更改 NSAppTransportSecurity 的帖子。我已经通过 Transport Security Plugin 完成了.

<dict>

<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>mywebsite.com</key>
<dict>
<!--Include to allow subdomains-->
<key>NSIncludesSubdomains</key>
<true/>
<!--Include to allow HTTP requests-->
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<!--Include to specify minimum TLS version-->
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
</dict>
</dict>
</dict>

我已经更改了 CSP:

 <meta http-equiv="Content-Security-Policy"
content="default-src * gap: ;
style-src 'self' 'unsafe-inline' 'unsafe-eval';
script-src 'self' 'unsafe-inline' 'unsafe-eval';
'child-src'*;
'frame-src':*;
" />

我仍然遇到这个错误。有什么帮助吗?

最佳答案

实际上它来自嵌入的 iframe。它使用 sha-1 签名进行认证,Apple 不允许使用此签名。所以我正在更改签名。

关于ios - Cordova IOS = >' Failed to load resource: An SSL error has occurred',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38785951/

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