Skip to content

@nogoo9/mcp-server-cloud-fs / transports/security-headers / applySecurityHeaders

Function: applySecurityHeaders()

applySecurityHeaders(response, securityHeaders): Response

Defined in: transports/security-headers.ts:46

Apply security headers to a Web Standard Response. Creates a new Response with the security headers merged in.

Parameters

response

Response

The original Response to augment.

securityHeaders

Record<string, string>

Pre-computed security headers from createSecurityHeaders.

Returns

Response

The response with security headers applied (mutates in place).

Released under the PolyForm Shield 1.0.0 License.