MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / getContentSecurityPolicyHeaderName

Function getContentSecurityPolicyHeaderName

apps/web/src/lib/security-headers.ts:63–67  ·  view source on GitHub ↗
(mode: ContentSecurityPolicyMode)

Source from the content-addressed store, hash-verified

61 ) {
62 return configuredMode;
63 }
64 return 'report-only';
65}
66
67export function getContentSecurityPolicyHeaderName(mode: ContentSecurityPolicyMode): string | null {
68 if (mode === 'off') return null;
69 if (mode === 'report-only') return 'Content-Security-Policy-Report-Only';
70 return 'Content-Security-Policy';

Callers 2

baseProxyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected