5

I have a nodejs app with express as backend which is running on localhost. I have subdomains associated with it like user1.localhost. These subdomains are opening in Chrome but Firefox throws Server Not Found error.

Does Firefox needs some configuration to allow subdomains?

Aman Gupta
  • 2,831
  • 3
  • 28
  • 55

1 Answers1

6

I think the reason is that Chrome resolves *.localhost to localhost internally and other browsers request DNS server for subdomain.localhost (which obviously fails). You can use hosts files to make it work for them.

The reason Chrome does this is security reasons, you can read more about it here.

Andrey
  • 56,384
  • 10
  • 111
  • 154