Not a valid origin for the client from Google API Oauth

后端 未结 10 1142
心在旅途
心在旅途 2021-01-01 09:04

I\'m receiving this error from Google API Oauth:

idpiframe_initialization_failed\", details: \"Not a valid origin for the client: http://127.0.0.…itel

相关标签:
10条回答
  • 2021-01-01 09:20

    It might be in case, while you are using same email id for creating client id and for sign-in through webpage

    0 讨论(0)
  • 2021-01-01 09:23

    If it's all the same to you, try adding http://localhost:8887 to your authorized JavaScript origins instead. Had that error myself at some point and this fixed it. Know that you will have to use this URL for your request as well event though it translates to http://127.0.0.1:8887/.

    0 讨论(0)
  • 2021-01-01 09:27

    I read on several places on the web people use to redo the creation of the credentials to get it to work.
    So I did, I created a new credential for the same project and used my new user-id and it worked perfectly... Looks like the edition of the whitelist is a bit flacky...

    Nb: I also used localhost instead of 127.0.0.1, IPs are not valid.

    0 讨论(0)
  • 2021-01-01 09:27

    I just went through all of these solutions before realizing I was putting in

    https://localhost:3000

    and my dev server was serving up

    http://localhost:3000

    Stupid, I know, but someone else will probably make the same mistake and perhaps this comment will help them :)

    0 讨论(0)
提交回复
热议问题