strapi/docs/security/xframe.md

28 lines
439 B
Markdown
Raw Normal View History

2016-03-22 18:11:11 +01:00
---
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:
```js
{
"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.