Google课堂共享按钮突然无法使用

问题描述

早在4月,我们就根据这些文档https://developers.google.com/classroom/guides/sharebutton集成了Google课堂共享按钮。今天我们注意到它无法正常工作,并在JavaScript控制台中看到了这些错误。谷歌搜索“ homeroom_share_widget”的机会很少,尽管有一个页面上有另一个StackOverflow帖子的副本,有人在2020年8月4日对此进行了报道,并“解决了”。

www.gstatic.com/classroom/sharewidget/widget_stable.html?usegapi=...com&pfname=&rpctoken=71244563:1 
Refused to apply style from 

https://www.gstatic.com/_/hr/_/ss/k=homeroom.homeroom_share_widget.-6njcba4tmj9p.L.X.O/d=1/ct=zgms/rs=AK3ymSVKf9-q6qT49CxfhvwE4dkes0zTHw/m=share_widget

because its MIME type ('text/html') is not a supported 
stylesheet MIME type,and strict MIME checking is enabled.

解决方法

Google在他们这边发现了问题并予以解决。有关详细信息,请参见https://issuetracker.google.com/u/1/issues/162785095