title: How can I read headers on an html page served over https using javascript
body: <p>How can I read my website headers when it is served over https? I tried</p>
  
  <pre><code>var req = new XMLHttpRequest();
  req.open('GET', document.location, false);
  req.send(null);
  var headers = req.getAllResponseHeaders().toLowerCase();
  alert(headers);
  </code></pre>
  
  <p>But this does not work for https pages.</p>