From 360c9f89ddf52d94de760b5eebd0ae5129974971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Mon, 30 Sep 2024 23:53:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/lib/interceptor/impl/res/AfterOPTIONSHeaders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mitmproxy/src/lib/interceptor/impl/res/AfterOPTIONSHeaders.js b/packages/mitmproxy/src/lib/interceptor/impl/res/AfterOPTIONSHeaders.js index b15622d..ee33cba 100644 --- a/packages/mitmproxy/src/lib/interceptor/impl/res/AfterOPTIONSHeaders.js +++ b/packages/mitmproxy/src/lib/interceptor/impl/res/AfterOPTIONSHeaders.js @@ -17,7 +17,7 @@ module.exports = { // 替换响应头 if (responseReplaceApi.replaceResponseHeaders({ ...headers }, res, proxyRes)) { - res.setHeader('DS-AfterOPTIONSHeaders-Interceptor', true) + res.setHeader('DS-AfterOPTIONSHeaders-Interceptor', rOptions.headers.origin) log.info('AfterOPTIONSHeaders intercept:', JSON.stringify(headers)) } },