Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express get port from request

const proxyHost = req.headers["x-forwarded-host"];
const host ? proxyHost : req.headers.host;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #express #port #request
ADD COMMENT
Topic
Name
8+8 =