查看真实地址方式:
通过配置vue.config.js文件,直接在请求头输出完整地址:
'/api/': {
changeOrigin: true,
target: process.env.VUE_APP_PLATFORM_URL,
logLevel: 'debug', // 在终端输出
onProxyRes(proxyRes, req, res) { // 请求头输出x-real-url2
const realUrl = new URL(req.url || '', process.env.VUE_APP_PLATFORM_URL)?.href || ''
proxyRes.headers['x-real-url2'] = realUrl
console.log(req.url)
}
},
终端效果图:













![IP-guard flexpaper远程命令执行漏洞复现 [附POC]](https://img-blog.csdnimg.cn/ae95bfbdc6dc497abf020688e9fb318c.png)





