Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Missing HSTS response header for Pega application



Security issue reported wherein HTTP Strict Transport Security (HSTS) response headers are missing in Pega response.

Error Messages

Not Applicable

Steps to Reproduce

Check for response headers for any PRPC response. Strict-Transport-Security headers are generally missing

Root Cause

Not Applicable


Perform the following local-change:

Changes to be made in web.xml are :



Add compiled class of i.e. WebStandardBootFilter.class in location ‘webapps\prweb\WEB-INF\lib\prbootstrap\com\pega\pegarules\internal\web\servlet’

package com.pega.pegarules.internal.web.servlet;


import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponse;

public class WebStandardBootFilter implements Filter {

public void destroy() {
// No-Op

public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {

((HttpServletResponse) response).addHeader("Strict-Transport-Security", "max-age=31536000;includeSubDomains;preload");
chain.doFilter(request, response);

public void init(FilterConfig arg0) throws ServletException {
// No-Op


Published August 17, 2017 - Updated October 8, 2020

Was this useful?

50% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us