【问题标题】:Bypass Certificate expiration in javascript绕过javascript中的证书到期
【发布时间】:2014-11-28 17:41:27
【问题描述】:

我正在尝试向具有过期证书的 url 发出 Https 发布请求。有没有办法绕过 Javascript 中的安全性?我能够在 C# 和 Java 中做到这一点。

function post()
{
  var xmlhttp;
  xmlhttp = new XMLHttpRequest();

  xmlhttp.open("POST","https://something.com:8443/trigger",true);
  xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
  xmlhttp.send("code=6644&workflow.reponame=test");
}

【问题讨论】:

    标签: javascript ajax post ssl-certificate


    【解决方案1】:

    你不能这样做。简而言之:在别人的浏览器中,这不是你的决定。

    【讨论】:

    • 我最终联系了我尝试连接的站点的负责人,他们解决了证书问题。可惜没有办法像我在 C# 中那样做。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-07-28
    • 1970-01-01
    • 1970-01-01
    • 2017-08-29
    • 2021-02-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多