I want to hide firebase init code from my webapplication since this not secure for my firebase database, all information have in the init code so hacker can easily inject spam to my firebase database, here this the init
// Initialize Firebase
// TODO: Replace with your project's customized code snippet
var config = {
apiKey: "<API_KEY>",
authDomain: "<PROJECT_ID>.firebaseapp.com",
databaseURL: "https://<DATABASE_NAME>.firebaseio.com",
storageBucket: "<BUCKET>.appspot.com",
messagingSenderId: "<SENDER_ID>",
};
firebase.initializeApp(config);
Can anyone please give me a solution for this?