How to use QML WebSocket with authorization/cookie Headers

  • Hi everyone,

    currently I need a solution in QML to connect to a WebSocket server which want read an authorization token from the header of the HTML protocol. But I really didn't found a way to insert this token into the QML WebSocket (QtWebSockets)

    The example in the link below is only an example to connect to a WebSocket service which allow all connections without an authorization token in the headers.

    Is this possible with the QML WebSocket, do anyone know a workaround or another solution to achieve this fastly?

    Thanks a lot for any help!


Log in to reply

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