@flypig had given me a heads up for the more restrictive CORS rules as of 4.4. To keep it to the point, to load local resources in a WebView:
WebView {
/* This will probably be required from 4.4 on. */
Component.onCompleted: {
/* disable ALL
WebEngineSettings.setPreference("security.disable_cors_checks", true, WebEngineSettings.BoolPref)
OR */
WebEngineSettings.setPreference("security.fileuri.strict_origin_policy", false, WebEngineSettings.BoolPref)
}
id: webView
anchors.fill: parent
url: "../mah/index.html"
}
WebEngineSettings requires
import Sailfish.WebEngine 1.0