I have a webpage which receives data from a realtime database using the following javascript code:
firebase.initializeApp(fbConfig);
firebase.appCheck().activate('6LdKHhMbAAAAAHeIcmY17pO7tccNzVcT6OkyvOPr');
firebase.database().ref('/feed').on('value', (snapshot) => {
console.log(snapshot.val());
}
AppCheck is enforced for the realtime database with reCAPTCHA configured. But even without the appCheck().activate() line, the page is able to receive data. Seems that the app check functionality has not effect.
The purpose should be that only real (anonymous) users, having a good reCAPTCHA score are able to receive the data.
Any idea what is missing here. I expected that the page will not be able to get data once App Check is enforced, if it is not activating with the correct shared code. But there seems to be missing something here. For this read-only application no token (as from grecaptcha.execute()) is send to my server in some way, there is no request going to my on server, like it would be the case if forms are submitted. Firebase seems to have no setting to steer which reCAPTCHA ratting is needed.