Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xB3Traceid added to the response headers #1942

Closed
pachecopaulo opened this issue May 7, 2021 · 1 comment
Closed

xB3Traceid added to the response headers #1942

pachecopaulo opened this issue May 7, 2021 · 1 comment

Comments

@pachecopaulo
Copy link

pachecopaulo commented May 7, 2021

Describe the bug
Spring boot 2.4.4
Spring Cloud Sleuth 3.02
Spring Cloud 2020.0.2

Reading this GitHub isssue it was clear the xB3Traceid header wouldn't be included in the response headers due to security concerns but that's not the case. Regardless whether I add the X-b3-traceid header or not in the request it is always injected in the response.

I didn't add any snippet to the description because there is no explicit configuration for Sleuth, it's configured via Spring Boot auto-configuration. I only had to configure the CorsConfigurationSource to allow the "X-b3-spanid" and "X-b3-traceid" headers.

Is there a way to configure Sleuth to not add this header in the response?

@marcingrzejszczak
Copy link
Contributor

We're not setting any headers in the response. Why do you think Sleuth is doing that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants