Skip to content
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 error on Google login #155

Open
kzulis opened this issue Nov 29, 2023 · 8 comments
Open

CORS error on Google login #155

kzulis opened this issue Nov 29, 2023 · 8 comments

Comments

@kzulis
Copy link

kzulis commented Nov 29, 2023

It seems that the cors.sh (https://cors.bridged.cc/) account used in npm package has reached usage limit.
Is this CORS proxy really necessary? Maybe we can have options to disable it or specify our own key?

Screenshot 2023-11-29 at 22 22 07
@VanThanh258
Copy link

Same error

@cuongdevjs
Copy link
Owner

please pass isGetOnlyToken = true as a prop

@lauriskuznecovs
Copy link

Passing isGetOnlyToken=true does not solve the issue.

@rockerleo
Copy link

having the same issue and prop isGetOnlyToken=true not works

@Rahul1726260
Copy link

having same issue cors error , how to resolve it ,
i need the profile data on the frontend side only

@Anan7Codes
Copy link

Same issue again. Request is being sent to this url "https://cors.bridged.cc/https://www.googleapis.com/oauth2/v3/userinfo?alt=json".

@lauriskuznecovs
Copy link

I overcame this issue by using another npm package - @react-oauth/google.
It does not have this nasty 3rd party CORS service in the middle and it WORKS.

@cuongdevjs
Copy link
Owner

Unfortunately, the key used to pass cors has exceeded quota, but you can ignore this by adding isGetOnlyToken={true} prop, it will ignore the call get user's info function, I recommend the user's info should called by the server-side to avoid this problem.

Repository owner deleted a comment from hassaan-glowfish Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants