Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Meteor服务器上的请求URL_Meteor - Fatal编程技术网

Meteor服务器上的请求URL

Meteor服务器上的请求URL,meteor,Meteor,有没有办法知道Meteor服务器上的请求来自哪个URL 具体来说,我想根据请求的URL参数筛选Meteor.publish方法。在服务器上执行此操作将比在Meteor.subscribe中从客户端发送参数更安全,因为客户端变量可能被黑客攻击。刚刚发现,至少在Meteor.publish函数中,您可以从此.session.socket.headers中找到请求URL

有没有办法知道Meteor服务器上的请求来自哪个URL


具体来说,我想根据请求的URL参数筛选Meteor.publish方法。在服务器上执行此操作将比在
Meteor.subscribe
中从客户端发送参数更安全,因为客户端变量可能被黑客攻击。

刚刚发现,至少在
Meteor.publish
函数中,您可以从
此.session.socket.headers
中找到请求URL