Skip to content

Commit cb784af

Browse files
Merge pull request #4123 from OpenLiberty/staging
Update_prod
2 parents c8d34f5 + 50e0f85 commit cb784af

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/content/antora_ui/src/css/doc.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
table-layout: fixed;
237237
position: relative;
238238
width: 100%;
239+
margin-left: 10px;
239240
}
240241

241242
.doc .admonitionblock td.content {

src/main/java/io/openliberty/website/SecurityFilter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain
5959
} else if ("https".equals(req.getScheme())) {
6060
// If HTTPS is configured this sets a bunch of security headers
6161

62+
// Remove X-Powered-By header to prevent information disclosure (OWASP recommendation)
63+
response.setHeader("X-Powered-By", "");
64+
6265
// Tell browsers that this site should only be accessed using HTTPS, instead of using HTTP.
6366
// IncludeSubDomains and 1 year set per OWASP.
6467
response.setHeader("Strict-Transport-Security", "max-age=31536000; includeSubDomains");

0 commit comments

Comments
 (0)