C# WebBrowser Control - ignore website security warnings [duplicate]

匆匆过客 提交于 2019-12-11 07:31:11

问题


Possible Duplicate:
How to disable “Security Alert” window in Webbrowser control

I'm currently using WebBrowser (System.Windows.Forms) in my program. When I try to access some websites over https, the message "There is a problem with your websites security certificate" appears. Is there any way I can get WebBrowser to ignore these types of warnings?

There are solutions for WebClient: How to ignore a certificate error with c# 2.0 WebClient - without the certificate But those solutions do not apply to this problem, as WebBrowser seems to ignore whatever is set in ServicePointManager.


回答1:


You might want to look at http://www.codeproject.com/KB/shell/WebBrowserControlDialogs.aspx from the question Access Intranet via SSL using WebBrowser Winforms Control



来源:https://stackoverflow.com/questions/5288223/c-sharp-webbrowser-control-ignore-website-security-warnings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!