To mitigate Cross-Site Scripting (XSS) risks by implementing a custom XSS protection filter and security headers.
<AE_Application>/aeui/WEB-INF/classes
AeXssProtectionFilter_xss1.class → Enables XSS protection
AeXssProtectionFilter_xss0.class → Disables XSS protection
AeXssProtectionFilter.class
👉 Select the appropriate file based on the AE version and requirement.
👉 Ensure the final file name placed in the classes folder is for 8.0:
AeXssProtectionFilter.class
<AE_Application>/aeui/WEB-INF/web.xml
Add the following before the <security-constraint> tag:
<filter>
<filter-name>AeXssFilter</filter-name>
<filter-class>AeXssProtectionFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>AeXssFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
For max-age configuration, HSTS headers can be added in:
web.xml

aeui/WEB-INF/classes