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.

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

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:
thank you in advanced
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.