Inject QWebChannel into an HTTPS page



  • Hi, I'm trying to inject qwebchannel.js into a QWebEnginePage with an URL server over HTTPS.
    Anyway QWebEngine (chromium) refuses to do so and outputs in the development console this error:
    "... was loaded over HTTPS, but requested an insecure script 'qrc:///qtwebchannel/qwebchannel.js'. This request has been blocked; the content must be served over HTTPS."

    How can I disable this security feature (maybe only for the qrc:// scheme)?

    Thanks.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.