reactjs-social-login icon indicating copy to clipboard operation
reactjs-social-login copied to clipboard

CORS error on Google login

Open kzulis opened this issue 2 years ago • 8 comments

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

kzulis avatar Nov 29 '23 20:11 kzulis

Same error

VanThanh258 avatar Nov 30 '23 01:11 VanThanh258

please pass isGetOnlyToken = true as a prop

cuongdevjs avatar Nov 30 '23 04:11 cuongdevjs

Passing isGetOnlyToken=true does not solve the issue.

lauriskuznecovs avatar Nov 30 '23 15:11 lauriskuznecovs

having the same issue and prop isGetOnlyToken=true not works

rockerleo avatar Nov 30 '23 18:11 rockerleo

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

Rahul1726260 avatar Dec 05 '23 04:12 Rahul1726260

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

Anan7Codes avatar Dec 07 '23 07:12 Anan7Codes

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.

lauriskuznecovs avatar Dec 07 '23 07:12 lauriskuznecovs

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.

cuongdevjs avatar Dec 07 '23 08:12 cuongdevjs