Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-jeckels committed Dec 21, 2024
1 parent ac202af commit 3b55f47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/org/labkey/api/security/AuthFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
else if (!AppProps.getInstance().isDevMode())
{
// Issue 51904: Strict-Transport-Security header when HTTPS is required
// Avoid setting when in dev mode to make it easier to toggle HTTPS on and off again for local deployments
resp.setHeader("Strict-Transport-Security", "max-age=31536000");
}
}
Expand Down

0 comments on commit 3b55f47

Please sign in to comment.