diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devui/DevUIRemoteCorsTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devui/DevUIRemoteCorsTest.java index b33d1009d119c..e3a3712788043 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devui/DevUIRemoteCorsTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devui/DevUIRemoteCorsTest.java @@ -2,7 +2,6 @@ import static org.hamcrest.Matchers.emptyOrNullString; -import java.net.Inet4Address; import java.net.UnknownHostException; import org.junit.jupiter.api.Test; @@ -20,13 +19,9 @@ public class DevUIRemoteCorsTest { @Test public void test() throws UnknownHostException { - String origin = Inet4Address.getLocalHost().toString(); - if (origin.contains("/")) { - origin = "http://" + origin.split("/")[1] + ":8080"; - } String methods = "GET,POST"; RestAssured.given() - .header("Origin", origin) + .header("Origin", "http://evilsite.com") .header("Access-Control-Request-Method", methods) .when() .options("q/dev-ui/configuration-form-editor").then()