In my case this function works:

onFeaturePermissionRequested: { console.log("onFeaturePermissionRequested"); webEngineView.grantFeaturePermission(securityOrigin, feature, true); }

Tested on Qt 5.6 and Qt 5.7 on Desktop and Embedded