I have a core java application which starts an embedded jolokia (version 1.6.0) agent thusly:
JolokiaServer server = new JolokiaSerser( new JvmAgentConfig(configMap), false);
server.start();
When I run it locally, I am able to connect to it via hawtio (version 2.13.2) and browse mbeans under the jmx tab.
However, if I deploy it to a remote box and try to connect, hawtio says "Host not whitelisted". I've tried to add the two flags I found via googling:
java -Dhawtio.proxyWhitelist='*' -Dhawtio.proxyAllowlist='*' hawtio-app-2.13.2.jar --port 9090
I still get the same error when connecting. Any ideas as to what I am doing wrong?
Thanks