javascript - Basic Google Sign-In for Websites code not working in Internet Explorer 11 -
i attempting use google sign-in websites (https://developers.google.com/identity/sign-in/web/) , noticed solution not working in internet explorer 11. try eliminate many factors possible, created simple test case based on sample code provided google.
i've tested in chrome on windows 7 pc, chrome on mac, safari on mac, firefox on mac , safari on iphone. works on of these (e.g., when click sign in button , select/enter google account, returns page , button says, "signed in").
it not, however, work on internet explorer 11 on pc or, strangely enough, chrome ios. when button clicked, window opens allow me select google account, after making selection, window closes , returns page button still says, "sign in."
here sample code:
<html> <head> <meta name="google-signin-client_id" content="61023618497-vqfbod57f26ncjl9d6firk3t09ve4tt3.apps.googleusercontent.com"> <script src="https://apis.google.com/js/platform.js" async defer></script> </head> <body> <div class="g-signin2"></div> </body> </html>
any ideas might going on? i've searched around , have not found solutions.
one idea add "accounts.google.com" ie's trusted sites. didn't work. tried accessing page via https instead of http. didn't make difference either. else should try?
i ran same problem now, few months later.
if at:
https://developers.google.com/identity/sign-in/web/build-button
and try signin demo button, not work ie11 (but works other browsers using @ different os). not find solution.
i leaving comment future reader, searches same problem in future. if demo button @ google not work, can @ least rest assured problem not in code. :)
Comments
Post a Comment