When i create a new project in Firebase console, it generates a cloud messaging api key by default. Take my key per ex:
This key is also created in the google api managers console, same key per ex:
It's all good, but I'm gonna be using this key to send pushes on a webpage (FCM API using javascript), so I want to restrict the requests from my website.
The problem is, if I take my key and apply a restriction on it on API manager console, Firebase generates a new key (both in Firebase console - cloud message and API manager console), to be used. The old key that is restricted does not work, I only get HTTP 403 on request, but the new one(unrestricted) works 100%.
So my question is, how to restrict a FCM Server key? Is there any other way?