Getting CORS error with Google login(OAUTH) API in Angular

Viewed 48

Methods I have tried out -

  1. I tried to add 'Access-Control-Allow-Origin': '*' in my header but i get the same result.
  2. Adding proxy.cong.json file in my src folder again same result
  3. 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

0 Answers
Related