Question:
How do I implement the code “X-Frame-Options “DENY”” to prevent Clickjacking attacks.
Product:
Wix Editor
What are you trying to achieve:
As stated above, I need to implement the code X-Frame-Options: DENY to prevent Clickjacking. It is a security measure strongly recommended by a third-party web-security auditor (users upload personal details via our website and we need to ensure their info is protected).
What have you already tried:
I have already tried to paste “X-Frame-Options: DENY” and " Header set X-Frame-Options “DENY”" in Settings > Advanced > Custom Code (settings: Header, All pages. Code type: Essential).
It was not successful.
Additional information:
Can someone offer/link to a step-by-step tutorial on how to implement this security measure on my WIX website?
You cannot modify the http response headers returned when accessing a page built on Wix or Wix Studio.
In order to handle incoming requests to your site’s pages you should use the Wix Router API. The following API will give you the ability to change the HTTP Responses when accessing pages, however the response headers are not configurable.
I will look into Wix Router API, but just to be sure I understand your message can you clarify: will I be able to successfully input X-Frame-Options: DENY using this method?
I only ask because you say, “however the response headers are not configurable.”
As a laymen, I learned from some research that X-Frame-Options: DENY needs to be in the header… let me know.
Thanks for this. I just wanted to confirm that the above insertion of the code in custom settings worked and protected your site? I too was looking for this solution