title: Bypass Certificate expiration in javascript
body: <p>I am trying to make a Https post request to an url having an expired certificate. Is there a way to bypass that security in Javascript? I was able to do it in C# and Java.</p>
  
  <pre><code>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&amp;workflow.reponame=test");
  }
  </code></pre>