We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When default security headers are added using HttpSecurity.headers(), some headers are added twice when async request is used.
The X-Content-Type-Options header appears twice,
X-Content-Type-Options
HTTP/1.1 200 X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-Frame-Options: DENY X-Content-Type-Options: nosniff Transfer-Encoding: chunked Date: Fri, 06 Sep 2019 20:04:03 GMT
No duplicate headers.
It only happens with async request when payload is larger than buffer (16K).
org.springframework.security:spring-security-web:5.1.6.RELEASE
This is a minimal test that reproduces the problem,
https://github.com/zzcoder/header-test
The text was updated successfully, but these errors were encountered:
Closing as a duplicate of #4211. This issue is fixed in all currently supported versions of Spring Security.
Sorry, something went wrong.
eleftherias
No branches or pull requests
Summary
When default security headers are added using HttpSecurity.headers(), some headers are added twice when async request is used.
Actual Behavior
The
X-Content-Type-Options
header appears twice,Expected Behavior
No duplicate headers.
Configuration
It only happens with async request when payload is larger than buffer (16K).
Version
Sample
This is a minimal test that reproduces the problem,
https://github.com/zzcoder/header-test
The text was updated successfully, but these errors were encountered: