I have an Electron app that loads 3rd party code from local files installed on user's computer into a <webview> tag. Currently the webview is able to load any local file via absolute paths (file://...) or parent references (../../file.ext).
For security reason, I want to limit the webview's local files access to only the files inside a specific directory (where the html file is), and prevent it from accessing anything outside. Is it possible to do it in Electron?