Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

React-Native Firebase Requests from referer are blocked

/*
You must add the app fingerprint on the firebase console

OR

Change the key from ./app/google-services.json > api_key.current_key

Go to https://console.cloud.google.com/apis/credentials/ and create a new API Key for Android.

Replace the key from google-services.json with this key

Error message:
W/Firebase-Installations: Error when communicating with the Firebase Installations server API. 
  HTTP response: [403 Forbidden: {
      "error": {
        "code": 403,
        "message": "Requests from referer u003cemptyu003e are blocked.",
        "status": "PERMISSION_DENIED",
        "details": [
          {
            "@type": "type.googleapis.com/google.rpc.ErrorInfo",
            "reason": "API_KEY_HTTP_REFERRER_BLOCKED",
            "domain": "googleapis.com",
            "metadata": {
              "service": "firebaseinstallations.googleapis.com",
              "consumer": "projects/foo"
            }
          }
        ]
      }
    }
  ]
*/
 
PREVIOUS NEXT
Tagged: #Firebase #Requests #referer #blocked
ADD COMMENT
Topic
Name
7+2 =