Run firebase on a single domain

Asked

Viewed 98 times

0

I’m learning to work with firebase recently. I made a simple example removing user authentication to chat.

That way I need to implement some kind of security, so I have two questions regarding the security of firebase:

How do I set up firebase to run on only one domain? How can I hide my access key from my firebase which is in the javascript code?

  • You do not need to hide the key, the reading/writing of your site/app is set in the rules within the console of the firebase project.

1 answer

0

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

About hiding, I don’t think it’s possible, but once you do a good domain control, this issue is no longer necessary, but if you still want to hide, look for obfuscation tools

Browser other questions tagged

You are not signed in. Login or sign up in order to post.