title: Getting over a 426 upgrade required
body: <p>I've been working on a web app (front Angular, back Node/Express/Mongo) for a few months now.</p>
  
  <p>I run Angular on localhost:4200 and Node on localhost:3000</p>
  
  <p>Some people in our team are running the backend in a VM that runs on their computers.</p>
  
  <p>So that the app works in both cases we've edited the windows hosts file to make the app point to the correct place (either the VM or the back on the local machine)</p>
  
  <p><code>127.0.0.1  mysite</code></p>
  
  <p>Developers using the VM changed 127.0.0.1 with their VM's IP.</p>
  
  <p>Everything worked smoothly.</p>
  
  <p>A few days ago, our company installed bitlocker on every PC and I believe it caused our setup to break for everyone not using the VM (which is not subject to bitlocker)</p>
  
  <p>People working on localhost started receiving from the front app:</p>
  
  <blockquote>
    <p>OPTIONS <a href="http://mysite:3000/auth/login" rel="nofollow noreferrer">http://mysite:3000/auth/login</a> 426 (Upgrade
    Required)</p>
  </blockquote>
  
  <p>The requests are not even hitting the Node server. Looks like they're redirected to a websocket server?</p>
  
  <p>If I change the requests to target localhost:3000 the app works again but we lose the setup for people working on the VM. (thus committing code becomes annoying if we need to change the base url each time)</p>
  
  <p>I could make an environment for each case but it's not clean and I'd like to know why it suddenly broke.</p>