Function
removeCSPSource
(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 | */ |
| 269 | export 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 | } |
Tested by
no test coverage detected