Run the firebase in a single domain

0

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?

    
asked by anonymous 14.03.2017 / 04:24

1 answer

0

On the domain, you can configure this type of access in the firebase console. There, add the domains you can access. By default it is marked with localhost

On hiding, I think it is not possible, but once you have a good domain control, this question is no longer necessary, but if you still want to hide, look for obfuscation tools

    
10.04.2017 / 20:37