Hey Laszlo,
Yes, I'm trying to load files stored outside of the packaged app directory. So I need to access them using the file:// protocol.
I think that section refers to resources included in a Chrome app. As far as I see, I can access those resources even without specifying them in manifest. My guess is file protocol is simply disabled for webview tag. This might have always been the case but it's causing issues with NW13 now because whenever I use an absolute path, it gets converted to the chrome-extension url.
I got the same error with the following setting:
package.json:
"permissions": [
"webview"
],
"webview": {
"partitions": [
{"name": "trusted*",
"accessible_resources": ["*.html", "*.js"]} # adding the absolute path of the html doesn't work as well
]
},
<webview partition="trustedwebview" src="file:///..."></webview>
--allow-file-access-from-files and / or --allow-file-access flags also doesn't help.
The odd part is, I can load files just fine with an iframe. The url scheme restriction on webview seems strange in the context of nwjs.