summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-09-23 16:51:21 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-12 09:07:55 +0200
commitf6f8f258be09fef90585b0228bd82a9708ef34a6 (patch)
treebda96d216ba4c287fc516fa3345ae27feaaac437 /tests
parent9a6589369a0c6bfff31ef644f70bb54fd22ba17c (diff)
Block CORS from local URLs when remote access is not enabled
Pick-to: 6.2 5.15 Task-number: QTBUG-96849 Change-Id: I0e0a1530b8b31341c632a1fd00abd339b5152da0 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/core/origins/tst_origins.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/core/origins/tst_origins.cpp b/tests/auto/core/origins/tst_origins.cpp
index 518b20045..a8ec5b7b0 100644
--- a/tests/auto/core/origins/tst_origins.cpp
+++ b/tests/auto/core/origins/tst_origins.cpp
@@ -672,7 +672,7 @@ void tst_Origins::mixedXHR_data()
QTest::newRow("file->cors") << QString("file:" + QDir(QT_TESTCASE_SOURCEDIR).canonicalPath()
+ "/resources/mixedXHR.html")
<< QString("sendXHR('cors:/resources/mixedXHR.txt')")
- << QVariant(QString("ok"));
+ << QVariant(QString("error"));
QTest::newRow("qrc->file") << QString("qrc:/resources/mixedXHR.html")
<< QString("sendXHR('file:"