<div dir="ltr">Hello!<br>In the page describing RabbitMQ Web-Stomp Plugin (<a href="http://www.rabbitmq.com/web-stomp.html" target="_blank">http://www.rabbitmq.com/web-stomp.html</a>), I found the following code to connect to the RabbitMQ via Web-Stomp Plugin:<br>
<br> var on_connect = function() {<br> console.log('connected');<br> };<br> var on_error = function() {<br> console.log('error');<br> };<br> client.connect('guest', 'guest', on_connect, on_error, '/');<br>
<br>I would like to use this approach in an an application that will be installed on production mode.<br>Unfortunately, the code:<br> <br><br> client.connect('guest', 'guest', on_connect, on_error, '/');<br>
<br>is node acceptable for the security point of view. Therefore, can you please provide me <br>the right solution on how to handle the connection in a secured way (i.e. by not providing plain credentials in the<br>in JS or html).<br>
I look forward for your answers.<br>Thank you.<br> Regards,<br> Florin</div>