Preventing Click-Jacking

 For clickjack prevention, you can add the following code to your web.xml under $ARTIFACTORY_HOME/tomcat/conf:

<filter>

<filter-name>ClickjackFilterSameOrigin</filter-name>

<filter-class>com.xxx.yyy.ClickjackFilterSameOrigin.filter</filter-class> #replace ‘xxx.yyy’ with the filter class you’d like to add

<init-param>

<param-name>aaa</param-name>

<param-value>bbb</param-value>

</init-param>

</filter>

 

<filter-mapping>

<filter-name>ClickjackFilterSameOrigin</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

 

We would like to add that we do not officially support such changes, please add this at your own discretion.