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-14 10:15:48 +0200
commit8783d4a0e346598213a912e73552b2fc90cc091b (patch)
treefaad9eda4c03266a57c98b7715f26872939cb2ff /tests
parent72050abc798e7865f9e0e0657336227a89918413 (diff)
Block CORS from local URLs when remote access is not enabled
Task-number: QTBUG-96849 Change-Id: I0e0a1530b8b31341c632a1fd00abd339b5152da0 Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> (cherry picked from commit f6f8f258be09fef90585b0228bd82a9708ef34a6)
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:"