UNPKG

csp-builder

Version:

A builder tool to help generate Content Security Policies in a type-safe way

14 lines (13 loc) 372 B
import { DirectiveType } from '../../types'; import { AbstractMultiValueDirective } from '../abstract-multi-value-directive'; export class WorkerSource extends AbstractMultiValueDirective { getDirectiveName() { return 'worker-src'; } getDirectiveType() { return DirectiveType.Fetch; } getMinimumCspVersion() { return 3; } }