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

Refused to set unsafe header

XMLWordPrintable

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

      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
      ...

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes