Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/101.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Air for iOS webview-关闭SSL上的webview错误_Ios_Ssl_Air_Error Handling - Fatal编程技术网

Air for iOS webview-关闭SSL上的webview错误

Air for iOS webview-关闭SSL上的webview错误,ios,ssl,air,error-handling,Ios,Ssl,Air,Error Handling,在iOS的StageWebView-In-Air中,如果出现SSL证书错误,默认情况下会提示用户: “无法验证与此站点的安全连接。您愿意吗?” 还想继续吗 您正在查看的证书与网站名称不匹配 您正在尝试查看。” 发生这种情况时,是否有任何方法阻止消息发生,而只是隐藏webview 我添加了错误处理代码: function webview_error(event:ErrorEvent) { trace(event); webView.stage = null; isCon

在iOS的StageWebView-In-Air中,如果出现SSL证书错误,默认情况下会提示用户:

“无法验证与此站点的安全连接。您愿意吗?” 还想继续吗

您正在查看的证书与网站名称不匹配 您正在尝试查看。”

发生这种情况时,是否有任何方法阻止消息发生,而只是隐藏webview

我添加了错误处理代码:

function webview_error(event:ErrorEvent) {  
    trace(event);
    webView.stage = null;
    isConnected = false;
}
<>但是它只在用户点击“否”时触发,我不希望他们有这样的选项来避免中间人攻击。 谢谢