forwarding third-party application local port #19051
Replies: 3 comments 3 replies
-
So I assume that third-party app is reachable from inside the server that you log into, but not from the browser's iframe. This is possible with a raw channel. Depending on your third-party app you need to use the Cockpit-machines has the exact same situation with its VNC console: The VNC server is only listening on |
Beta Was this translation helpful? Give feedback.
-
This is my modified code,This is my modified code, but when loading this URL, its JavaScript and CSS cannot load properly。By implementing this method, the result is similar to that of cockpit.http, which I have tried before。 |
Beta Was this translation helpful? Give feedback.
-
Ah, I didn't realize that you want to embed this as a HTML iframe.
That will most likely not work, due to Content-Security-Policy restrictions, and possibly also because you log into cockpit through https://, and try to embed an unencrypted http:// iframe. Sorry, I'm afraid there is no existing demo for that, and I don't have an off-hand idea how to do this. This will require some playing around and checking the browser errors. |
Beta Was this translation helpful? Give feedback.
-
I want to develop a plugin for cockpit, which can integrate a third-party application. This third-party application is deployed by docker compose, and I don't want to expose it to the outside world, so I didn't map any external ports. But I want to embed this third-party application in my cockpit plugin by using iframe, but I only have an internal IP and port. When I access the internal address in the iframe src in the browser, the network is not reachable. But I don't want to use a proxy server like nginx, and I don't want to expose any ports to the outside. My goal is to access an internal service through the cockpit plugin. Do you have any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions