medium 是故意屏蔽了谷歌翻译的么?

2016-04-11 20:12:16 +08:00
 boro
medium 的页面,谷歌翻译一直无法翻译。 github 也是,无法整页使用谷歌翻译。它们是做了那些设置? 有哪位知道什么原因吗?

谢谢!
3184 次点击
所在节点    问与答
7 条回复
gamexg
2016-04-11 20:18:31 +08:00
github 通过新特征(记不住名字了,看 http 头)限制了 html 嵌入 js 、图片的域名,所以 js 类型的无法使用。
alect
2016-04-11 20:22:50 +08:00
我这里可以。。
alect
2016-04-11 20:24:14 +08:00
Slienc7
2016-04-11 20:38:29 +08:00
"Refused to load the stylesheet 'https://translate.googleapis.com/translate_static/css/translateelement.css' because it violates the following Content Security Policy directive: "style-src 'unsafe-inline' assets-cdn.github.com". "
然而还是成功翻译
lizheming
2016-04-11 22:09:12 +08:00
@gamexg content-security-policy
audi
2016-04-11 22:10:39 +08:00
windows 下中文字体丑爆了
wql
2016-04-11 23:00:12 +08:00
CSP 和 X-Frame-Options

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/270277

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX