WebView, WebEngine CORS headers and file loading in SFOS >= 4.4

There is no context html or js.

I get a string, from a QML plugin. That string is HTML. This I pass to Sailfish.WebView, calling its loadHtml() method.
WebView renders the page (sans images).

I didn’t write the QML plugin, merely using its output.

Basically

CustomThing {
  onContentChanged: web.loadHtml(content)
}
WebView { id: web
}

Code is here, bit messy right now but it’s WIP: