我有一个Chrome扩展程序,用于下拉使用HTTPS的Hacker News的RSS源。自从我升级到Chrome扩展清单的最新版本以来,我无法实现它。没有任何解释ajax请求失败。HTTPS来自Chrome扩展程序的Ajax请求无法正常工作
我99%确定我的JavaScript代码使得请求是正确的,所以我认为这是一个权限问题。
这里是我的清单中的权限和内容安全策略部分:
"permissions": [
"tabs",
"https://news.ycombinator.com/",
"http://news.ycombinator.com/",
"notifications"
],
"content_security_policy": "script-src 'self' 'unsafe-eval' https://news.ycombinator.com; object-src 'self' 'unsafe-eval' https://news.ycombinator.com"
任何想法?
谢谢!
编辑:
这里有一个链接到GitHub库:https://github.com/adamalbrecht/hacker-news-for-chrome/
有没有运气?我面临同样的问题 – 2016-10-30 15:36:24