generate_csp
Generate Content-Security-Policy header from structured directives input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directives | No | CSP directives map, e.g. { 'script-src': ['self', 'nonce-abc123'] } | |
| report_uri | No | Report URI for CSP violations | |
| report_only | No | Use Content-Security-Policy-Report-Only header |