According to the documentation, localhost should be whitelisted with all ports: https://support.google.com/firebase/answer/6400741?authuser=0 - and I checked this in console