Here are the steps I took to make this work correctly:
- Edited my hosts file so
127.0.0.1 localhost.
was present, and saved the file - Cleared my Chrome cache, specifically cookies and cached files
- Cleared host cache in
chrome://net-internals/#dns
- Restarted chrome
Alternatively, this also works:
- Navigate to chrome://net-internals/#hsts
- Under “Delete domain”, type
localhost
and delete
Unbeknownst to me, my project had an HSTS middleware that set an HSTS cookie