ConduitMcp.Plugs.SecurityHeaders (ConduitMCP v0.9.5)

Copy Markdown View Source

Plug that adds standard security response headers to all responses.

Sets the following headers:

  • X-Content-Type-Options: nosniff — prevents MIME-type sniffing
  • X-Frame-Options: DENY — prevents clickjacking via iframes
  • Cache-Control: no-store — prevents caching of API responses

Strict-Transport-Security is intentionally omitted because this library may run behind a reverse proxy that handles TLS. Add it in your own plug pipeline if needed.