The firebase Web-App guide states i should put the given apiKey in my Html to initialize firebase:(firebase Web-App指南指出,我应该将给定的apiKey放在Html中以初始化firebase:)
// TODO: Replace with your project's customized code snippet
<script src="https://www.gstatic.com/firebasejs/3.0.2/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: '<your-api-key>',
authDomain: '<your-auth-domain>',
databaseURL: '<your-database-url>',
storageBucket: '<your-storage-bucket>'
};
firebase.initializeApp(config);
</script>
By doing so the apiKey is exposed to every visitor.(这样,apiKey便暴露给每个访问者。) What is the purpose of that key and is it really meant to be public?(该密钥的目的是什么,真的意味着要公开吗?)
ask by farmio translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…