From bd7acd19ebb97f02498c81146076d76500aab1e0 Mon Sep 17 00:00:00 2001 From: carl-pki <85552832+carl-pki@users.noreply.github.com> Date: Thu, 13 Oct 2022 18:39:43 +0800 Subject: [PATCH] Clipboard: fix a bug about 'copy from selenoid and paste to selenoid' (#497) * feat: add two functions 1. copy from selenoid clipboard to local 2. paste to selenoid from local clipboard * feat: add two functions 1. copy from selenoid clipboard to local 2. paste to selenoid from local clipboard * feat: add two functions 1. copy from selenoid clipboard to local 2. paste to selenoid from local clipboard * feat: add two functions 1. copy from selenoid clipboard to local 2. paste to selenoid from local clipboard * feat: add two functions 1. copy from selenoid clipboard to local 2. paste to selenoid from local clipboard * bug: copy from selenoid and paste to selenoid description: Send the request to another container can not use ip=localhost, should use linked container name + port --- ui/src/setupProxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/setupProxy.js b/ui/src/setupProxy.js index a34bfb9e..803b830f 100644 --- a/ui/src/setupProxy.js +++ b/ui/src/setupProxy.js @@ -15,7 +15,7 @@ module.exports = function (app) { agent: agent, }) ); - app.use(createProxyMiddleware("/clipboard", { target: "http://localhost:4444" })); + app.use(createProxyMiddleware("/clipboard", { target: "http://selenoid:4444" })); app.use(createProxyMiddleware("/status", { target: "http://localhost:8080" })); app.use(createProxyMiddleware("/video/", { target: "http://localhost:8080" })); app.use(createProxyMiddleware("/wd/hub/", { target: "http://localhost:8080" }));