I'm learning to work with firebase recently. I made a simple example by removing user authentication to chat.
In this way I need to implement some kind of security, so I have two doubts regarding firebase security:
How can I configure for the firebase to run on only one domain? How can I hide my access key from my firebase that stays in the javascript code?