i. Navigate to 'APM_Home\working\WEB-INF\backup' and take a backup copy of the 'web.xml' file present there.
ii. In the web.xml file,search for the following line :
<!-- Uncomment the following code to enable protection against click jacking. -->
iii. Remove the starting '<!--' and trailing '-->' present beneath this line to uncomment the code used for preventing click jacking. The default code is used to prevent any type of frame activity.
Original :
<!-- Uncomment the following code to enable protection against click jacking. -->
<!--
<init-param>
<param-name>xFrameOptions</param-name>
<param-value>SAMEORIGIN</param-value>
</init-param>
<init-param>
<param-name>contentSecurityPolicy</param-name>
<param-value>frame-ancestors 'self'</param-value>
</init-param>
-->
Modified :
<!-- Uncomment the following code to enable protection against click jacking. -->
<init-param>
<param-name>xFrameOptions</param-name>
<param-value>SAMEORIGIN</param-value>
</init-param>
<init-param>
<param-name>contentSecurityPolicy</param-name>
<param-value>frame-ancestors 'self'</param-value>
</init-param>
iv. If the client is using APM as a Plugin build, then the client has to specify the OPM domain name instead of SAMEORIGIN as follows :
<init-param>
<param-name>xFrameOptions</param-name>
<param-value>ALLOW-FROM <source></param-value>
</init-param>
<init-param>
<param-name>contentSecurityPolicy</param-name>
<param-value>frame-ancestors <source>;</param-value>
</init-param>
Replace <source> with the domain from which the site can be accessed with in a frame.
Example :
<init-param>
<param-name>xFrameOptions</param-name>
</init-param>
<init-param>
<param-name>contentSecurityPolicy</param-name>
</init-param>
v. Save the file and restart the APM instance. Check if the issue is resolved.