我正试图在Chrome中为box.com构建一个简单的扩展。一切都很好,直到Box将令牌返回给扩展,我得到了以下内容
拒绝chrome-extension://finiioneilhchmigihgjmjbaopjjeggo/authentication.html?state=authenticated&code=Epmau2e0WZKFYojl2FpH9Kux39nVs82V.负载资源必须在web_accessible_resources清单键中列出,才能由扩展之外的页面加载。
显然,我需要在authentication.html清单键中列出文件web_accessible_resources。我都做了
"web_accessible_resources": ["chrome-extension://finiioneilhchmigihgjmjbaopjjeggo/authentication.html"],(finiioneilhchmigihgjmjbaopjjeggo是我的应用程序id )和
"web_accessible_resources": ["authentication.html"],但两者都不起作用。我该怎么做才能解决这个问题?
谢谢,
发布于 2014-04-23 23:36:00
我知道这不是‘干净’和/或它应该做的方式,但将manifest_version改为1对我有效。这只是一个解决办法:-
https://stackoverflow.com/questions/23102495
复制相似问题