title: angular universal https problems
body: <p>I have an angular universal app set up. I do POST requests on the server-side using localhost to pre-render my app and this works fine. </p>
  
  <p>An example working url would be <a href="http://localhost:8000/api/get-info" rel="nofollow noreferrer">http://localhost:8000/api/get-info</a>.</p>
  
  <p>I've now put the app into production on an external url (apache server). I'm also using ssl.</p>
  
  <p>Now when I try to do a POST request on the server-side to pre-render my app, I get back a response with status: 0, url: null (I'm assuming this means the connection was refused).</p>
  
  <p>An example non-working url would be <a href="https://mywebsite.com/api/get-info" rel="nofollow noreferrer">https://mywebsite.com/api/get-info</a>.</p>
  
  <p>What really stumps me is that when the app loads on the client, all HTTPS requests start working. So the problem is I cannot get the express server to send POST requests to my external url.</p>
  
  <p>I've tested a post request on the server-side to a different website (twitter), and that seems to work fine as well. So i'm not entirely sure where I've gone wrong.</p>
  
  <p>I already have CORS set to '*' as well.</p>