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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Network, Network: Cookies
    • Labels:
      None
    • Platform/s:
      WebAssembly

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            lpotter Lorn Potter
            Reporter:
            pumphaus Arno Rehn
            PM Owner:
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes