Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

807
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!