How do I get http request header fields server side in a Meteor.js app? -
how http request header fields server side in meteor.js app?
for example in php 1 use 1 of following determine host or domain request on.
$_server['http_host'] or $_server['server_name']
i know on client side can
document.domain
and pass server.
but there easier way @ least host (something.domain.com) client made request on?
after meteor 0.7 have call on server side
this.connection.httpheaders
Comments
Post a Comment