title: Gateway timeout when using ng build instead of ng serve
body: <p>I am trying to deploy my small Angular app to a server. My Angular app is using a separate .NET Core - Web API.</p>
  
  <p>When I run my Angular app using the following command works flawlessly... I can login into my app using the backend.</p>
  
  <pre><code>ng serve --host=85.214.XXX.XXX --port=4200 --disable-host-check --ssl --ssl-key /home/cert/cert.key --ssl-cert /home/cert/cert.key
  </code></pre>
  
  <p>But when I want to deploy my app for real using "ng build" and copying the files inside the dist directory to my htdocs-folder of the webserver it doesn't work.</p>
  
  <p>I mean the app does start, but entering some login data into the app results in a failed POST-request due to a 504 - Gateway timeout.</p>
  
  <p>Thanks for your help in advance</p>
  
  <p>@Update: It cannot be a backend issue, because the login works running the app using "ng serve" but not hosting the app after building with "ng build".</p>
  
  <p>@Update: It gets even weirder. It works using Firefox, but not Chrome, Edge, and all others...</p>