2014-10-03 74 views
0

我有RabbitMQ + WebStomp。我想完全限制从JavaScript代码发送信息到队列的能力。相反,只有服务器端应该这样做。防止RabbitMQ网页跺脚客户端发送

换句话说,我想允许下面的代码:

... 
client.subscribe("/queue/My-One-Way-Queue", function(m) { 
... 
client.onreceive = function(message) { 
    console.log(message); 
} 

,防止恶意软件做到以下几点:

client.send('/queue/My-One-Way-Queue', 
    {'reply-to': '/temp-queue/My-One-Way-Queue'}, text); 

回答