-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS Firebase Auth Cannot fetch to Auth url Capacitor 3 #5020
Comments
Thanks for pointing this out. Since this is unrelated to the particular SDK version, I'm going to remove the |
Look like others got the issue : capacitor-community/firebase-analytics#54 |
@sam-gc if you need the ionic team documented well the cors here : https://ionicframework.com/docs/troubleshooting/cors Ionic WebView 3.x plugin on Cordova Ionic WebView 2.x plugin on Cordova |
@sam-gc please, my apps are broken because of that :/ |
Any news? |
same issue. firebase 7.x works well. but 9.x not working because capacitor:// |
Anyone found a fix for this? |
Having the same issue. If anyones found a solution, please add it here. Thanks in advance. |
This fixed it for me: https://harryherskowitz.com/2021/08/23/firebase-capacitor.html |
my solution was to remove Firebase and use Supabase instead, they care about people who use they tools |
It looks like the issue is Firebase incorrectly detecting the environment (see @alistairheath's comment here). There's a check in the TL;DR, in |
@wmadden can you please make a PR to fix this ? |
The Pr is merged ! It will come soon in production ! |
@michaeljelly it has been released the 27 of may in the 9.8.2 👌 |
Awesome, turns our I had a different problem where I wasn't initialising the app properly, which I have now fixed! So all good. |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Since I wasn't able to use auth sdk in capacitor i tried to do it by json API using :
https://github.com/samuelgozi/firebase-auth-lite/blob/d4ed969c9d7a9181910b14f05a6e1140b33448d0/src/main.js#L118
This work perfectly on web but not in Mobile app because of the capacitor origin .
[Error] Failed to load resource: Origin capacitor://localhost is not allowed by Access-Control-Allow-Origin. (token, line 0)
https://securetoken.googleapis.com/v1/token?key=****
Steps to reproduce:
Create a starter capacitor app with the code below
Relevant Code:
The text was updated successfully, but these errors were encountered: