我已经为谷歌浏览器创建了我的第一个扩展程序但是没有通过https工作但是我已经在清单文件中添加了https网址的权限,这是我的问题。
{
"name": "My first extension",
"version": "1.0",
"manifest_version": 2,
"description": "My Chrome Extension is a free extension.",
"icons": {"16": "IrsiIcon16.png",
"48": "IrsiIcon48.png",
"128": "IrsiIcon128.png"
},
"browser_action": {
"default_icon": "IrsiIcon128.png",
"default_popup": "popup.html"
},
"permissions": [
"tabs",
"*://*/*",
"http://*/*",
"https://*/*",
"<all_urls>"
],
"content_scripts":
[{"matches": ["*://*/*","http://*/*", "https://*/*"],"js": ["jquery.js", "actions.js"],
"css": ["style.css"]
}
]
}
答案 0 :(得分:0)
当您尝试通过https发送请求时会发生什么? 你的清单还行。也许你有另一个问题?