|
|
@ -17,7 +17,7 @@ module.exports = {
|
|
|
|
|
|
|
|
|
|
|
|
// 替换响应头
|
|
|
|
// 替换响应头
|
|
|
|
if (responseReplaceApi.replaceResponseHeaders({ ...headers }, res, proxyRes)) {
|
|
|
|
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))
|
|
|
|
log.info('AfterOPTIONSHeaders intercept:', JSON.stringify(headers))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|