Firebase Messaging - Is it safe to store config variables in service worker? #4959
-
Beta Was this translation helpful? Give feedback.
Answered by
dbanisimov
Jun 1, 2021
Replies: 1 comment 1 reply
-
Yes, it is okay for them to be exposed. They are public by design. Even more, if you're using Firebase Hosting they'll be exposed automatically under a reserved path |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Feiyang1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it is okay for them to be exposed. They are public by design.
Even more, if you're using Firebase Hosting they'll be exposed automatically under a reserved path
/__/firebase/init.json
. For example check out the modular SDK website by the Firebase team themselves: https://modularfirebase.web.app/__/firebase/init.json