Browse Source

小调整

pull/375/head
王良 2 months ago
parent
commit
360c9f89dd
  1. 2
      packages/mitmproxy/src/lib/interceptor/impl/res/AfterOPTIONSHeaders.js

2
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))
}
},

Loading…
Cancel
Save