strapi/docs/security/xframe.md
2016-03-22 18:11:11 +01:00

439 B

title
X-Frame

Enables X-Frame-Options headers to help prevent Clickjacking.

Configuration

Configuration:

  • Key: xframe
  • Environment: development
  • Location: ./config/environments/development/security.json
  • Type: string

Example:

{
  "xframe": "SAMEORIGIN"
}

Notes:

  • The string is the value for the header: DENY, SAMEORIGIN or ALLOW-FROM.
  • Set to false to disable X-Frame-Options headers.