Security Headers
Set the Referrer-Policy and Permissions-Policy response headers of this site, picked from a fixed list of safe values. Use it when a site must restrict browser features (camera, microphone, geolocation, payment, usb, display-capture, fullscreen, autoplay) or control what the Referer header reveals. It also sets a Content-Security-Policy, in report-only mode (browsers report violations and block nothing) or enforced (browsers block what the policy does not allow). Meta tags cannot do this. HSTS, X-Frame-Options and X-Content-Type-Options are set by the platform. Paid plans.
Try it with your AI assistant
Once WebsitePublisher is connected to your AI assistant, paste one of these into the chat.
@WebsitePublisher block camera, microphone and geolocation on my site with a Permissions-Policy header@WebsitePublisher show which security headers my site sends now and which values I can choose@WebsitePublisher add a report-only Content-Security-Policy, then enforce it once the browser console shows nothing breaksWith WebsitePublisher, block camera, microphone and geolocation on my site with a Permissions-Policy headerWith WebsitePublisher, show which security headers my site sends now and which values I can chooseWith WebsitePublisher, add a report-only Content-Security-Policy, then enforce it once the browser console shows nothing breaksWith WebsitePublisher, block camera, microphone and geolocation on my site with a Permissions-Policy headerWith WebsitePublisher, show which security headers my site sends now and which values I can chooseWith WebsitePublisher, add a report-only Content-Security-Policy, then enforce it once the browser console shows nothing breaksEndpoints (2)
Security header settings of this project: stored values, the effective headers, the platform defaults, the allowed values and the platform_sources an enforced Content-Security-Policy must allow.
No input parameters required.
Change security headers; project owner only, never an admin session. referrer_policy: one of no-referrer, same-origin, strict-origin, strict-origin-when-cross-origin, no-referrer-when-downgrade. permissions_policy: object of feature => "none" (blocked everywhere) or "self" (this site only), e.g. {"camera": "none", "microphone": "none", "geolocation": "none"}; features not listed stay at the browser default. content_security_policy: object {"directives": {"default-src": ["self"], "img-src": ["self", "data:", "https://cdn.example.com"]}, "report_uri": "https://reports.example.com/csp"}; optional mode "report-only" (default: violations are reported, nothing is blocked) or "enforce" (the browser blocks what the policy does not allow; allow the platform_sources listed by get-headers); directives, keywords and schemes from the allowed list in get-headers; keywords may be sent without quotes. reset: setting names to put back to the platform default. Paid plans to set; reset works on every plan. A cached page shows the new headers once its cache is refreshed.
| Field | Type | Required | Description |
|---|---|---|---|
referrer_policy |
string | No | Referrer-Policy value from the allowed list. |
permissions_policy |
array | No | Object of feature => "none" or "self". |
content_security_policy |
array | No | CSP: {"mode": "report-only" or "enforce", "directives": {directive: [sources]}, "report_uri": "https://..."}. mode defaults to report-only; enforce blocks. |
reset |
array | No | Setting names to put back to the default: referrer_policy, permissions_policy, content_security_policy. |
MCP Tool Names
When using this integration through an AI assistant (Claude, ChatGPT, Cursor, etc.), the endpoints are available as MCP tools:
| Endpoint | MCP Tool Name |
|---|---|
| get-headers | security-headers_get_headers |
| set-headers | security-headers_set_headers |
Website