I am trying to read and write on firebase database from web application
and i got this error
the error appear when the writeUserData() function called
and this is the js code
<script src="https://www.gstatic.com/firebasejs/5.5.1/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
// copied from firebase website
};
firebase.initializeApp(config);
writeUserData();
function writeUserData() {
firebase.database().ref('options/gK6YJVMAr82Pp8GHmjJa').set({
active_table: '2222',
});
}
</script>