javascript - Google OAuth2 fails for Internet Explorer 11 -


i did google manual oauth2. html:

<div id="my-signin2"></div> 

js:

 <script src="https://apis.google.com/js/platform.js?onload=renderbutton" async defer></script> <script type="text/javascript">     function onsuccess(googleuser) {         alert("uraaa");         console.log('logged in as: ' + googleuser.getbasicprofile().getname());     }      function onfailure(error) {         alert("uff");          console.log(error);     }      function renderbutton() {         gapi.signin2.render('my-signin2', {             'scope': 'https://www.googleapis.com/auth/plus.login',             'width': 100,             'height': 50,             'longtitle': false,             'theme': 'light',             'onsuccess': onsuccess,             'onfailure': onfailure         });     }  </script> 

it works chrome , firefox. , no authorization happens in internet explorer 11.

how fix it?


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -