Firebase offers unparalelled development speed, handling all the nitty gritty details that you might not want to think about when getting a product to market. It provides hosting, database, storage, cloud functions and much more functionality.
But by default a firebase installation is not focussed on security but developer productivity. If you have an app that has some security requirements you should think about hardening your installation. This can be done by adjusting some settings in the underlying Google Cloud Project.
Firebase uses an API key to access services on your applications behalf. In the default settings this API Key works on every domain - so anybody could read your and use your public data from any page, using your firebase credits.
To remedy: