Requests for referrer are blocked when trying to sign in anonymously to Firebase

前端 未结 2 938
一个人的身影
一个人的身影 2021-01-17 10:40

I’m trying to sign in anonymously from a Web app using the JS SDK and it works great on some environments, but on one environment, the exact same code that’s working elsewhe

相关标签:
2条回答
  • 2021-01-17 10:49

    It seems like you have set some referrer restrictions on your API key. You need to go to the Google Cloud Console and modify these restrictions on your API key.

    0 讨论(0)
  • 2021-01-17 11:11

    To make it work I've added the following "website restrictions" for my "Browser key":

    • https://www.googleapis.com/
    • https://firebaseinstallations.googleapis.com/
    0 讨论(0)
提交回复
热议问题