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

Refused to set unsafe header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.5.0 Beta1
    • 5.15.5, 6.4
    • Network: HTTP
    • None
    • WebAssembly
    • 0b382080c2 (qt/qtbase/dev) 0b382080c2 (qt/tqtc-qtbase/dev)

    Description

      WebAssembly forbids to set various HTTP headers (as they're set automatically I assume). Thus I get lots of errors as below (we're polling) which make debugging otherwise harder. Thus I think Qt should automatically ignore these "unsafe header"s for WebAssembly.

      Refused to set unsafe header "Content-Length"
      __emscripten_fetch_xhr @ VM77:13743
      performUncachedXhr @ VM77:13996
      getRequest.onsuccess @ VM77:13908
      IndexedDB (async)
      __emscripten_fetch_load_cached_data @ VM77:13886
      _emscripten_start_fetch @ VM77:14022
      $emscripten_fetch @ pcre2_xclass.c:269
      $QNetworkReplyWasmImplPrivate::doSendRequest() @ qarraydata.h:61
      $QNetworkReplyWasmImplPrivate::setup(QNetworkAccessManager::Operation, QNetworkRequest const&, QIODevice*) @ qnetworkreplywasmimpl.cpp:188
      $QNetworkAccessManager::createRequest(QNetworkAccessManager::Operation, QNetworkRequest const&, QIODevice*) @ qnetworkaccessmanager.cpp:1473
      $QNetworkAccessManager::post(QNetworkRequest const&, QByteArray const&) @ qnetworkaccessmanager.cpp:879
      ...

      Attachments

        Issue Links

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

          Activity

            People

              mikolaj.boc Mikołaj Boc (Inactive)
              alexj Alexander Jährling
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes