Methods I have tried out -
- I tried to add 'Access-Control-Allow-Origin': '*' in my header but i get the same result.
- Adding proxy.cong.json file in my src folder again same result
- Adding https://cors-anywhere.herokuapp.com/ in my API
Getting CORS Error in this Get API https://accounts.google.com/o/oauth2/auth/oauthchooseaccount?redirect_uri=http://localhost:8080/callback&prompt=consent&response_type=code&client_id=7959075971923-4ap302stqlop2qiuf6i1ltgtfkj5nodq.apps.googleusercontent.com&scope=openid+profile+email+https://www.googleapis.com/auth/fitness.activity.read&access_type=offline&flowName=GeneralOAuthFlow Request Method: GET Status Code: 302 Referrer Policy: strict-origin-when-cross-origin