All
I was trying to understand how the remote plugin application works. I have the remote plugin running on a separate box, it is registered, the communication works fine etc.
I understand that the plugin is a SpringBootJava application, and is serving up the angular as static content.
However I notice that when I hit the plugin from vsphere UI, it is seemingly making a call to the local vsphere box to get the data to fill the iframe, like so. (ip and port obfuscated).
<iframe ng-src="/plugins/com.vmware.sample.remote~1.0.0/<ip>-<port>/sample-ui/index.html?view=entry-point&locale=en_US" sandbox="allow-scripts allow-same-origin allow-forms" class="sandbox-iframe" src="/plugins/com.vmware.sample.remote~1.0.0/100.123.0.8-443/sample-ui/index.html?view=entry-point&locale=en_US" style="display: block; box-sizing: border-box; width: 100%; height: 100%; border: 0px;"></iframe>
And looking at the plugin side, looks like vsphere is basically sending the same request (/sample-ui/index.html?view-entry-point) to the plugin server.