is it ok to exposed the firebase config to the client? #8163
Unanswered
jozhuare99
asked this question in
Q&A
Replies: 1 comment
|
Yes—the Firebase web config object is designed to be included in client code. Firebase documents its values (including the Firebase-provisioned API key, project ID, app ID, database URL, and storage bucket) as non-secret identifiers. That does not mean the backend is automatically public. Protect it with:
Do not put genuinely privileged credentials in client code: service-account private keys, FCM server keys, Admin SDK credentials, or API keys for unrelated services such as the Gemini Developer API. Official references: Firebase config object, API keys for Firebase, and the Firebase security checklist. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
is it fine to be exposed the config?
All reactions