What are X-Frame-Options?

Technology CommunityCategory: Web SecurityWhat are X-Frame-Options?
VietMX Staff asked 3 years ago

Use the X-Frame-Options HTTP header is one of the options to prevent clickjacking. It allows an application to specify whether frame use is simply denied, via the DENY value, or the use of frames is allowed, by the SAMEORIGIN or ALLOW-FROM values. Mainstream modern browsers do support this header option, but other browsers may not.

Possible X-Frame-Options:

  • X-Frame-Options: DENY
  • X-Frame-Options: SAMEORIGIN
  • X-Frame-Options: ALLOW-FROM https://example.com