I am building a web app with firebase and I am looking to restrict access to firebase auth signup.
In theory a malicious user could make requests to the firebase auth REST API with my public API token. I understand that there are rate limits in place however I am looking to eliminate this possibility entirely.
I have added my domain as a restriction for the firebase key via the Credentials tab in APIs & Services. When I try to make requests to this domain without a referer header it fails as expected.
However, when I set the referer header with the authorized domain it works. If a malicious user adds my public domain as referer header in that request they can create an account.
I have looked into AppCheck however I'm not sure if there is any benefit in regards to restricting access to the firebase auth REST API. Any insight or help is greatly appreciated!
Related posts: