thank you for your answer , but i change from C++ to QML and i work :
WebEngineView {
id: webView
width: 520
height: 520
url: "https://localhost:8443/"
visible: false
anchors.fill: parent
anchors.margins: 10
onCertificateError:{
error.CertificateInvalid
error.ignoreCertificateError()
console.log(error)
}
onFeaturePermissionRequested: { console.log("request")
grantFeaturePermission(securityOrigin, feature, true);
}