Question : Is it possible to add X-FRAME-OPTIONS response header to prevent clickjacking? This is one of the options to prevent Clickjacking
Environment : Production
Answer :
Starting SFCC B2C Platform release 13.3, Customers can now set the X-FRAME-OPTIONS response header in the code to prevent clickjacking.
Allowed values are: DENY, SAMEORIGIN.
Note: SFCC B2C platform validates the values for this header and will throw an exception if the header is set to any other value.
See http://tools.ietf.org/html/draft-gondrom-x-frame-options-00 for more information.
Additional Info : Class Response
Note:
The OnRequest pipeline / controller is called in a separate (internal) request before the actual request from the storefront is handled. This means any headers set in the OnRequest handlers response will have no effect on the actual response that is returned to the client. Headers for clients like the mentioned X-Frame-Options header must be set in the implementation for the storefront call.
000391452

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.