Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.5, 6.4
-
None
-
-
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
- relates to
-
QTBUG-114233 Sec-WebSocket-Protocol missing for WebSockets in WebAssembly targets
-
- Closed
-
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-95585 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
439721,3 | Trim headers considered unsafe from the WASM net requests | dev | qt/qtbase | Status: MERGED | +2 | 0 |