I get a error 400 when signing in with the google sign-in button on my webpage -


i trying put google+ sign-in button on website, 400 error when try sign in it. get.

400. that’s error.  requested url not found on server. that’s know.the  

i have following included in <head>:

<script src="https://apis.google.com/js/platform.js" async defer></script> <meta name="google-signin-client_id" content="620096179377-ula3qjt2s01qqhberlqq470n16kccnh5.apps.googleusercontent.com"> 

and following wanted button:

<div class="g-signin2" data-onsuccess="onsignin"></div> 

this code should work you:

<html> <head>   <title>test google login</title>   <script src="https://apis.google.com/js/platform.js" async defer></script>   <meta name="google-signin-client_id" content="620096179377-ula3qjt2s01qqhberlqq470n16kccnh5.apps.googleusercontent.com">   <script>   function onsignin(googleuser) {     console.log(googleuser);   }   </script> </head> <body>   <div class="g-signin2"     data-onsuccess="onsignin"></div> </body> </html> 

if issue persists, attach details request causes 400? (url should enough)


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -