Local XMLHttpRequest in a WebView

According to the documentation, when using WebView.loadFile:

The supplied HTML file can reference files and nested directories in the same directory as the HTML file resides.

How should I call (inside my WebView) XMLHttpRequest with a local file ?
The web view is loading the test.html file in the Scriptable folder.
Trying to access the file test2.html in the same folder, using XmlHttp with :
does not work.

Any idea ?

1 Like

I think the documentation refers here to other files linked in the HTML like styles and external javascript files and not to files loaded later on with XMLHttpRequest.

1 Like

Not what I wanted to read, but I think you are right!