【问题标题】:How do access web app(created by the same chrome app) from filesystem in a Chrome app webview?如何从 Chrome 应用程序 webview 中的文件系统访问 Web 应用程序(由相同的 chrome 应用程序创建)?
【发布时间】:2016-08-18 13:08:29
【问题描述】:

我想在 chrome web 应用程序的 webview 中启动由同一个 chrome 应用程序在文件系统内创建的 web 应用程序。

我得到的网址如下: "filesystem:chrome-extention //path-to-html 页面"

并且在 manifest.json 的 webview 部分也给予了分区权限。 但它会抛出找不到错误文件。 有什么方法可以访问它们以作为 web 应用程序启动。

谢谢。

【问题讨论】:

标签: google-chrome-app google-chrome-webview


【解决方案1】:

它需要额外的权限 (chrome.sockets),但您可以在 chrome 应用程序中包含 web server for chrome 库,并将 webview 指向 http 服务器托管的 url。

【讨论】:

  • 它也适用于 iframe。也应该适用于 Web 服务器案例。谢谢!
  • @kzahel 我知道这是一个老问题,只是想确认我们无法访问 web-view 中的文件系统文件是否正确,?我们必须使用网络服务器使其工作
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-02-18
  • 1970-01-01
  • 2014-03-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-09-10
相关资源
最近更新 更多