switchysharp
switchysharp copied to clipboard
插件缺少跨域访问权限,导致在线规则列表更新失败
!! 请勿清空此模板,除非你不希望问题被解决。
*提示* :请确认你正在使用最新版的 SwitchySharp 插件。
你可以在扩展管理页面的“开发人员模式”中点击
“立即更新扩展”按钮来更新。
----------
你遇到了什么问题?(比如,本来应该是怎样的结果,但
实际又是怎样的结果?):
插件无法更新在线规则列表,提示“更新在线列表失败!”��
�console输出类似 XMLHttpRequest cannot load
http://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt. No
'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'chrome-extension://dpplabbmogkhghncfbfdeeokoefdjegm' is therefore not
allowed access.
手工修改manifest.json,在permissions中添加"http://*/*",
"https://*/*",可以解决问题。
如何重现此问题?(怎样做可以发现这个问题?):
1. 使用版本1.10.3,使用任意在线列表
2. 点击立即更新列表
你正在使用什么操作系统和 Chrome/Chromium 的什么版本?
(你可以复制 chrome://version/ 页面的前几行。)
Chrome 33.0.1750.146 m
建议附上你的设置备份文件(.bak)以便分析问题:
* 设置备份文件可在“导入/导出”选项卡使用
“生成备份文件”按钮导出。
* 请使用下面的上传附件功能,将自动下载的备份文件
(.bak)和你的报告一起提交。
感谢你的支持。
开发人员可能会对此错误的细节进行进一步的询问,或说
明问题已经修复,请及时查收 *邮件* 以获取最新消息。
Original issue reported on code.google.com by [email protected]
on 15 Mar 2014 at 4:43
我不知道是什么情况,但是我想 manifest.json 中应该已经写了
"<all_urls>" ,这个应该包括所有的网站跨域访问权限了[1]。
而且之前用 all_urls
一直是可以的,直到最近才出现这种情况,而 Chrome Extensions
相关文档却一点也没有提到有任何改变。所以我倾向于认为��
�是 Chrome 的问题。
[1] 参见: https://developer.chrome.com/extensions/match_patterns
Original comment by [email protected]
on 15 Mar 2014 at 6:59
不好意思,我没搞过chrome插件,没注意到那个all_urls权限
我又测试了一下,看样子是chrome的问题
把插件删除,再从chrome web
store上重新下载安装,在线规则列表就可以正常更新了
可能chrome自己对插件保存了一份权限清单,然后在chrome自动��
�级的时候丢失了一部分?
Original comment by [email protected]
on 15 Mar 2014 at 7:27
Issue 901 has been merged into this issue.
Original comment by [email protected]
on 21 Mar 2014 at 9:23
Issue 903 has been merged into this issue.
Original comment by [email protected]
on 21 Mar 2014 at 9:23
我先在 permissions 里加了 http 和 https 。大家可以试试看等
1.10.4 更新后是否还有这种情况。
Original comment by [email protected]
on 21 Mar 2014 at 9:34