📜  从请求中快速获取端口 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:23.808000             🧑  作者: Mango

代码示例1
const proxyHost = req.headers["x-forwarded-host"];
const host ? proxyHost : req.headers.host;