MCPcopy Index your code
hub / github.com/simstudioai/sim / removeCSPSource

Function removeCSPSource

apps/sim/lib/core/security/csp.ts:269–275  ·  view source on GitHub ↗
(directive: keyof CSPDirectives, source: string)

Source from the content-addressed store, hash-verified

267 * Remove a source from a specific directive (modifies build-time directives)
268 */
269export function removeCSPSource(directive: keyof CSPDirectives, source: string): void {
270 if (buildTimeCSPDirectives[directive]) {
271 buildTimeCSPDirectives[directive] = buildTimeCSPDirectives[directive]!.filter(
272 (s: string) => s !== source
273 )
274 }
275}

Callers 1

csp.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected