> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# config-unsafe-security-header

> A web server or hosting config sets a security header to a value that disables it, such as X-Frame-Options: ALLOWALL or CSP 'unsafe-eval'.

## What it flags

A header the file explicitly sets to a value that removes its protection: `X-Frame-Options: ALLOWALL`, `X-Frame-Options: ALLOW-FROM ...` without a CSP `frame-ancestors` directive (modern browsers ignore `ALLOW-FROM`), and a `Content-Security-Policy` whose `script-src` (or `default-src` when there is no `script-src`) allows `'unsafe-eval'`. Read from Nginx, Apache, `vercel.json`, `netlify.toml` and `_headers` files.

A missing header is never reported, because a proxy, CDN or the application can add it. `Content-Security-Policy-Report-Only`, `'wasm-unsafe-eval'` and `'unsafe-eval'` in other directives are not reported. Impact is low: the header still leaves other defenses in place, and some dependencies need `eval`.

```nginx theme={null}
add_header X-Frame-Options DENY always;
add_header Content-Security-Policy "script-src 'self'" always;
```

No automatic fix: a human decides.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "config-unsafe-security-header": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.