enter code hereI encountered a similar issue and resolved it by adding multiple links to the configuration file located in public/env/config.js (and in config.testing.js).
To add multiple links to the same environment, you can specify them in the VITE_APP_UI_URL variable, separating each URL with a comma. This approach allows you to easily configure multiple links within the same environment.
//config.Testing.js
process.env.PORT = 3000;
process.env.HOST = 'localhost';
process.env.CLIENT_ID = 'your_client_id';
process.env.REDIRECT_URI = 'your_callback_endpoint';
var VITE_APP_UI_URL = "your_test_url_1 , your_test_url_2";
var VITE_SITE_KEY = "your_site_key";
var VITE_APP_API_BASEURL = "your_baseurl";