Firebase real-time database truested domain rules

In my real-time firebase database rules, I want to allow read & write only from my trusted domain website. (Example: MyWebSite.com).

This is what I’ve tried and didn’t work:

`

{

“rules”: {

  ".read": "auth.token.domain === 'trusteddomain.com'",

  ".write": "auth.token.domain === 'trusteddomain.com'"

}

}`