C# .Net Webbrowser控件不适用于https web api调用
我们面临.net Web浏览器控件(.net v 4.0)的问题 Web应用在调用(选项)受SSL保护的Web API时失败,状态为0。如果我们删除SSL,它工作正常 下面是失败的代码C# .Net Webbrowser控件不适用于https web api调用,c#,winforms,webbrowser-control,desktop-application,C#,Winforms,Webbrowser Control,Desktop Application,我们面临.net Web浏览器控件(.net v 4.0)的问题 Web应用在调用(选项)受SSL保护的Web API时失败,状态为0。如果我们删除SSL,它工作正常 下面是失败的代码 $.ajaxSetup({ headers: { "authorization": 'bearer ' + sessionStorage.token } }); $.ajax({ cache: false, type: type, url: url,
$.ajaxSetup({
headers: {
"authorization": 'bearer ' + sessionStorage.token
}
});
$.ajax({
cache: false,
type: type,
url: url,
data: data,
dataType:'json',
async: true,
contentType: 'application/json',
error: function (err) {
debugger;
if (err.status != 404) {
console.log(err);
alert(err.statusText);
}
},
success: success
});