You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I access a particular resource, called /img/logo.png, the headers appear as expected:
However, when I access a different resource, called /img/error.png, the headers are missing:
When I debug, I can see that in both cases the ContentSecurityPolicyHeaderWriter class is called for all the required headers. However, in the case of the missing headers, the ResponseHttpFields instance is already committed before these headers are added, which means that they are never added.
I believe the issue is that for larger files, the response is starting to be written before the ContentSecurityPolicyHeaderWriter is being called
The text was updated successfully, but these errors were encountered:
I made a Spring Boot application using version 3.3.7. I have configured my endpoint to generate some HTTP headers, using some XML. like:
When I access a particular resource, called /img/logo.png, the headers appear as expected:
However, when I access a different resource, called /img/error.png, the headers are missing:
When I debug, I can see that in both cases the ContentSecurityPolicyHeaderWriter class is called for all the required headers. However, in the case of the missing headers, the ResponseHttpFields instance is already committed before these headers are added, which means that they are never added.
I believe the issue is that for larger files, the response is starting to be written before the ContentSecurityPolicyHeaderWriter is being called
The text was updated successfully, but these errors were encountered: