I am working on a mobile project that is built on ionic and uses Firebase for auth, database, storage, etc. A few days ago, I applied restriction to the Firebase api keys on Google Cloud Console by setting up HTTP referrer for iOS/Android/Web api keys. Problem is - both iOS and android builds are having issue with Firebase api calls (web app still works normally), throwing the following error:
[ Requests from referer <empty> are blocked. ]" !! smsLogin ERROR"Error Domain=FIRAuthErrorDomain Code=17999 "An internal error has occurred, print and inspect the error details for more information." UserInfo={FIRAuthErrorUserInfoNameKey=ERROR_INTERNAL_ERROR, NSLocalizedDescription=An internal error has occurred, print and inspect the error details for more information., NSUnderlyingError=0x282938ff0 {Error Domain=FIRAuthInternalErrorDomain Code=3 "(null)" UserInfo={FIRAuthErrorUserInfoDeserializedResponseKey={\n code = 403;\n details = (\n {\n "@type" = "type.googleapis.com/google.rpc.ErrorInfo";\n domain = "googleapis.com";\n metadata = {\n consumer = "projects/770668602613";\n service = "identitytoolkit.googleapis.com";\n };\n reason = "API_KEY_HTTP_REFERRER_BLOCKED";\n }\n );\n errors = (\n {\n domain = global;\n message = "Requests from referer are blocked.";\n reason = forbidden;\n }\n );\n message = "Requests from referer are blocked.";\n status = "PERMISSION_DENIED";\n}}}}"
What does the referrer <empty>
mean here?