【问题标题】:Access local chrome-urls in chrome-app在 chrome-app 中访问本地 chrome-url
【发布时间】:2015-01-03 00:40:19
【问题描述】:

如何访问本地 chrome-url 以从那里接收内容?例如,为 chrome://version 使用 iframe 或使用 AJAX 直接访问内容。

有什么想法吗?我尝试了以下权限:

{
  "manifest_version": 2,
  "app": {
    "permissions": [
      "chrome://*",
      "chrome://version"
    ]
  }
}

--> “不允许加载本地资源”

我查看了可能的权限,但没有找到符合我期望的任何内容。 https://developer.chrome.com/extensions/declare_permissions

提前非常感谢

【问题讨论】:

    标签: google-chrome google-chrome-app


    【解决方案1】:

    不,你can't access chrome:// URLs in an app

    通过tabs API 在扩展中间接可能,但目前没有任何东西可以让应用程序这样做。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-09-19
      • 2014-03-20
      • 2014-06-15
      • 1970-01-01
      • 2021-09-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多