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-13 16:41:22 +0200
commit4340b9579e0138dbcde83dc33e3c06c132f432b0 (patch)
treed8f9fac6f7b3787d3a11ba3c7aa6755001f2390c /tests
parentb99b6ed65f66b4630bdc2b407a97bd0e526165d3 (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/widgets/origins/tst_origins.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/origins/tst_origins.cpp b/tests/auto/widgets/origins/tst_origins.cpp
index 93a496ac4..e7d71d7fe 100644
--- a/tests/auto/widgets/origins/tst_origins.cpp
+++ b/tests/auto/widgets/origins/tst_origins.cpp
@@ -657,7 +657,7 @@ void tst_Origins::mixedXHR_data()
<< QVariant(QString("ok"));
QTest::newRow("file->cors") << QString("file:" THIS_DIR "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:" THIS_DIR "resources/mixedXHR.txt')")