Getting CORS while using Analytics on Web #7982
Unanswered
PradyumnaKrishna
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Did you ever figure this out? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I am trying to build cross platform application and using react-native-firebase to log event through
firebase/analytics
. I tried the demo on android, it worked fine, but on the web it gave me errorI managed to initialise the Firebase App by providing it credentials. Now when I tried to log events using
react-native-firebase/analytics
, it gives me CORS error during API call with google analytics.Not sure if there is something wrong with the setup. What is the correct way to setup the firebase for web using
react-native-firebase
?Take this code as reference for my setup:
Beta Was this translation helpful? Give feedback.
All reactions