diff --git a/src/main/java/in/projecteka/gateway/CorrelationIDFilter.java b/src/main/java/in/projecteka/gateway/CorrelationIDFilter.java index 269b9a1..9983b01 100644 --- a/src/main/java/in/projecteka/gateway/CorrelationIDFilter.java +++ b/src/main/java/in/projecteka/gateway/CorrelationIDFilter.java @@ -32,6 +32,7 @@ public Mono filter(ServerWebExchange exchange, WebFilterChain chain) { MDC.put(CORRELATION_ID, correlationId); Context contextTmp = context.put(CORRELATION_ID, correlationId); exchange.getAttributes().put(CORRELATION_ID, correlationId); + exchange.getResponse().getHeaders().add(CORRELATION_ID, correlationId); return contextTmp; }); }