Firefox不支持Google登录吗?

时间:2018-02-06 15:49:27

标签: html google-signin googlesigninapi

我试图运行链接在以下位置的默认示例代码(使用我的客户端ID): https://developers.google.com/identity/sign-in/web/

代码在Google Chrome浏览器上正常运行(返回所有用户信息),同时使用Firefox引发异常:

"uncaught exception: [object Object]"

任何人都可以帮助我吗? 最诚挚的问候

2 个答案:

答案 0 :(得分:1)

请从谷歌删除所有cookie并清除缓存然后重启Firefox。如果不起作用,请返回cookie并清除您不需要的所有内容。另外检查您的防火墙软件,看看是否有任何东西加起来谷歌,可以豁免。转到网站时也要关闭所有广告拦截器。

如果这不起作用https://support.mozilla.org/en-US/kb/refresh-firefox-reset-add-ons-and-settings

答案 1 :(得分:1)

仅在SSL情况下;将HEAD放在下面的元数据

<meta http-equiv="Content-Security-Policy" content="default-src https:; script-src https: 'unsafe-inline'; style-src https: 'unsafe-inline' ">        

即使在default-src中指定了https :,脚本和样式指令也不会自动继承该源。每个指令都会完全覆盖该特定资源类型的默认值。