I am using Firebase Realtime Database on my web site, all works fine, but, when I want to do auth with custom json token I am getting a CORS issue like this: "Request from another blocked source: the same source policy prevents reading the remote resource in https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=$somekey".
Thanks
I know this question is old but I was in the same issue, so I post the solution for some one else having the same troubles.
To avoid the CORS issue you need to go to Firebase console -> Authentication -> Sign-in method -> Then, scroll down to the 'Authorized domains' section and add your IP Address.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With