javascript – Google Sign In connection does not work in Edge and Opera browsers, does Google Chrome and Mozilla work?

Hello everyone, this is the mistake I get when I click on the Google login button in the Opera and Edge browsers.
The strangest that errors do not appear in Mozilla and Google Chrome, in the first loga of Chrome and Mozilla is normal.

My javascri pt code

onSignIn function (answer) {
console.log ("1");
// Get your user information:
var profile = response.getBasicProfile ();

// Get the user ID
var userID = profile.getId ();

// Get the user name
var userName = profile.getName ();

// Obtaining the user's e-mail
var userEmail = profile.getEmail ();

if (userEmail! = "") {
button (); // the button to move
buttonLog (); // hide the login button
}

if (userEmail == "") {

}
// Get the URL of the profile picture
var userPicture = profile.getImageUrl ();

//document.getElementById('user-photo').src = userPicture;
//document.getElementById('user-name').innerText = userName;
//document.getElementById('user-email').innerText = userEmail;

// Receive the TOKEN you will use in other API queries:
var LoR = response.getAuthResponse (). id_token;
console.log ("Token:" + LoR);

};

$ (# Google_plus_a). on (& # 39; click & # 39; function (e) {
console.log ("2");
e.preventDefault ();
var auth2 = gapi.auth2.getAuthInstance ();
auth2.signOut (). then (function () {
console.log ("3");
console.log (& # 39; User offline. & # 39;);
});
});



I have tried it too.

// ------------------------------------------------ ---- ---------------------------------------------- ---- -

// check if the user is; connected and performs actions
// perform actions if the user is logged in
/*gapi.load('auth2 & # 39 ;, function () {
console.log ("4");
gapi.auth2.init ({

client_id: 42800149292988-ouocv0d188o1nu3rdhas2dcatahsae1a.apps.googleusercontent.com & # 39;

}). then (function () {
console.log ("5");
auth2 = gapi.auth2.getAuthInstance ();
console.log (auth2.isSignedIn.get ()); // Now, that always returns correctly

if (auth2.isSignedIn.get () == true) {
button (); // the button to move
buttonLog (); // hide the login button
console.log ("6");
} else {
// user nameGoogle ();
console.log ("7");
}
});
}); * /

// ------------------------------------------------ ---- ---------------------------------------------- ---- ---------------------------------------------- ---



// Google login button is this block of display
function buttonLogar () {
console.log ("8");
console.log ("The user is not logged in with Google wants to connect to BT no!");
$ (# G-signin2 & # 39;). css (& # 39; display & # 39 ;, & quot; none & # 39;); // the google login button disappears
}

botaoDeLogar2 function () {
console.log ("9");
console.log ("The user is not logged in with Google wants to connect to the BT block!");
$ (# G-signin2 & # 39;). css (& # 39; display & # 39; block & # 39;); // the google login button appears
}

// Exit button if the user is logged in this view aparencendo no
function button Delete () {
console.log ("10");
console.log ("The user is connected to Google wants to disconnect it.");
$ (# Google_plus_a). css (& # 39; display & # 39; block & # 39;); // The exit button appears
}

My head where he calls the Google API


        
        
        

The errors that look like the browser are EDGE and OPERA – "No Goog on
Chrome and Mozill will work normally. "

Error that appears on EDGE and does not work when I click the "Google Connect" button.


400. It's a mistake.
Error: redirect_uri_mismatch
The original JavaScript request, https: //www.*****************.com, does not match that allowed for the OAuth client. Visit https://console.developers.google.com/apis/credentials/oauthclient/428001492988-97ub0g6ijog4n440anrgm706ijg0dqqt.apps.googleusercontent.com?project=428001492988 to update the allowed JavaScript origins.
Learn more
Details of the request
redirect_uri = storagerelay: //https/www.*************? id = auth604459
response_type = permission id_token
scope = openid mail profile
openid.realm =
client_id = 428001492988-97ub0g6ijog4n440anrgm706ijg0dqqt.apps.googleusercontent.com
ss_domain = https: //www.**************.com
fetch_basic_profile = true
gsiwebsdk = 2
That's all we know.

Error appearing on the console in Opera and Edge

cb = gapi.loaded_0: 103 not captured

{error: "idpiframe_initialization_failed", details: "The origin is not valid for the client: https: // www.
Details: "Not a valid origin for the customer: https: //www.******.com has not been whitelisted for customer ID 428001492988-97ub0g6ijog4n440anrgm706ijg0dqqt.apps.googleusercontent.com S & P please go to https :. // island .developers.google.com / and whitelist this origin for the client ID of your project. "
error: "idpiframe_initialization_failed"
__proto__: Object