This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch feature/WW-5511-javadoc in repository https://gitbox.apache.org/repos/asf/struts.git
commit 687f76250709e3ffd7ad356430836fb197b0d9ee Author: Lukasz Lenart <lukaszlen...@apache.org> AuthorDate: Fri Aug 22 08:37:52 2025 +0200 WW-5511 Adds missing JavaDocs to addCspHeaders method --- .../main/java/org/apache/struts2/interceptor/csp/CspSettings.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/org/apache/struts2/interceptor/csp/CspSettings.java b/core/src/main/java/org/apache/struts2/interceptor/csp/CspSettings.java index 0548dde2e..7e8de5c70 100644 --- a/core/src/main/java/org/apache/struts2/interceptor/csp/CspSettings.java +++ b/core/src/main/java/org/apache/struts2/interceptor/csp/CspSettings.java @@ -44,6 +44,11 @@ public interface CspSettings { String HTTPS = "https:"; String CSP_REPORT_TYPE = "application/csp-report"; + /** + * Adds CSP related headers to response based on request state (e.g., if session has been created) + * + * @since Struts 6.0.3 + */ void addCspHeaders(HttpServletRequest request, HttpServletResponse response); /**