如何获得Chrome中的书签图标? [英] How can I get the bookmark icon in chrome?
本文介绍了如何获得Chrome中的书签图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用时:
<img src="chrome://favicon/http://www.google.com.hk"/>
在我的扩展程序中,出现了问题.它发出了警告
in my extension.It got something wrong.It warned
不允许加载本地资源:chrome://favicon/http://www.google.com.hk"
"Not allowed to load local resource:chrome://favicon/http://www.google.com.hk"
我该如何解决?
推荐答案
仔细检查以确保您已添加"chrome://favicon/"
Double-check to make sure you've added the "chrome://favicon/"
permission.
这是"manifest_version":2
扩展名吗?我对它们不熟悉,但是它们可能会要求您指定内容安全政策允许这样做.
Is this a "manifest_version" : 2
extension? I'm not familiar with them, but they may require that you specify a Content Security Policy that allows this.
这篇关于如何获得Chrome中的书签图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文