diff --git a/src/bin_client/test/test_cors.sh b/src/bin_client/test/test_cors.sh index 49c5980040ce3a72de618c4f75e2b350fa47fe0a..6003d20f53a3b9e5e1dcacaa59d7d66ad00f805e 100755 --- a/src/bin_client/test/test_cors.sh +++ b/src/bin_client/test/test_cors.sh @@ -5,7 +5,7 @@ set -e test_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)")" source $test_dir/test_lib.inc.sh "$@" -start_node 1 --cors-origin "*" +start_node 1 --cors-origin localhost show_logs="no" diff --git a/tests_python/tests/test_cors.py b/tests_python/tests/test_cors.py index 428af322da485e68fc7465485704f78d04b55525..c7cbb8f02e20a51e7e5cd5597ba62cbf1ffd6720 100644 --- a/tests_python/tests/test_cors.py +++ b/tests_python/tests/test_cors.py @@ -5,7 +5,7 @@ from tools import utils @pytest.fixture(scope="class") def node(sandbox): """Launches one node in sandbox mode (genesis)""" - sandbox.add_node(0, params=['--cors-origin', '*']) + sandbox.add_node(0, params=['--cors-origin', 'localhost']) yield sandbox.node(0) @@ -38,4 +38,4 @@ class TestCors: '/chains/main/blocks/head/header/shell', headers=headers) print(res.headers) - assert res.headers["access-control-allow-origin"] == '*' + assert res.headers["access-control-allow-origin"] == 'localhost'