As a security precaution, Commerce Store Accelerator applications are prevented from being loaded in an iframe. However, both Experience Manager and Business Control Center preview load the site within an iframe, so this configuration must be overridden in the preview configuration layers.
To override the iframe security configuration:
Copy the
CommerceAccelerator/Applications/B2CStore/src/main/configlayers/preview/atg/dynamo/servlet/dafpipeline/DynamoHandler.properties
file.Paste the copied file to these two locations; the first location is for Business Control Center preview. The second is for Experience Manager preview.
CommerceAccelerator/Applications/
application-name
/src/main/configlayers/preview/atg/dynamo/servlet/dafpipeline
CommerceAccelerator/Applications/
application-name
/src/main/configlayers/endecapreview/atg/dynamo/servlet/dafpipeline