Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

809
Visualizações
Error 400 : redirect_uri_mismatch JavaScript origin with google apps script

I want to build a web app and it should be deployed as me because i don't want force users to accept som risky authorisation but at the same time i need to know their adress email.

thats why i thought about google login API when i tried to run it i got this error message.

Error message while login in google API

so i tried to put the url in the redirect url in google developper console but i got this error

Error message while adding url in google console

can somebody help me please ?

i use this code to interact with google API

<!DOCTYPE html>
<html>
  <head>
    <base target="_top">
    <meta name="google-signin-client_id"
        content="xxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com">
    <script src="https://apis.google.com/js/platform.js" async defer></script>
  </head>
  <body>
    <div class="g-signin2" data-onsuccess="onSignIn"></div>
  </body>
  
</html>

i tried to put origin url on both side but i got:

enter image description here

thank you in advanced

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The issue is that you are setting the redirect uri and not the JavaScript origin as the error message "probably" states.

Take the uri that the error message is telling you and place it in the proper location on Google cloud console.

This video will show you how Google Oauth: error redirect_uri_mismatch the javascript origin Quick Fix.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda