We are using firebase JS library to read the data.so we have the API key details in js file. we have whitelisted domain and restricted API key on developer console. However when we download website html file and access the .html on local desk top, we are able to get the data from firebase. ie html file on local desktop reads the data from firebase db.
We have tried using anonymous firebase authentication which secures read data. but high latency ie poor performance.
has any one got another way to protect read data on firebase?