Hello,
I'm trying add google sign-in button in a simple html page, but it doesn't work. I tested all possibilities available around internet topics. The first thing that I did was setting authorized domains to "http://localhost" but I'm getting the same error "The given origin is not allowed for the given client ID". Here my configs and html code. Someone can help me? Thanks 🙂
Hello @rafagodoy ,
Here's the steps provided by a 3rd party documentation:
Provided with the sample code when adding the sign in button on step number 5
<html>
<body>
<div id="g_id_onload"
data-client_id="YOUR_GOOGLE_CLIENT_ID"
data-login_uri="https://your.domain/your_login_endpoint"
data-auto_prompt="false">
</div>
<div class="g_id_signin"
data-type="standard"
data-size="large"
data-theme="outline"
data-text="sign_in_with"
data-shape="rectangular" data-callback="OnSuccess"
data-logo_alignment="left">
</div>
</body>
</html>