Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-90893

QNetworkRequest WASM implementation has no way of setting 'withCredentials = true'

    XMLWordPrintable

Details

    • WebAssembly
    • 2efd2f490c (qt/qtbase/dev) 2efd2f490c (qt/tqtc-qtbase/dev)

    Description

      When performing a QNetworkRequest on the WASM platform, cookies are only transferred in same-origin contexts. The reason for this is that QNetworkReplyWasmImplPrivate does not set m_xhr.withCredentials = true on the XMLHttpRequest that's created in the backend.

      For web frontends that communicate with backends at a different origin, this is a major showstopper.

      Leaving the default at withCredentials = false is fine, but it should be possible to set this differently. API wise, I guess it would be best to add an QNetworkRequest::Attribute that does this.

      Attachments

        For Gerrit Dashboard: QTBUG-90893
        # Subject Branch Project Status CR V

        Activity

          People

            lpotter Lorn Potter
            pumphaus Arno Rehn
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes