csp-builder
Version:
A builder tool to help generate Content Security Policies in a type-safe way
14 lines (13 loc) • 384 B
JavaScript
import { DirectiveType } from '../../types';
import { AbstractMultiValueDirective } from '../abstract-multi-value-directive';
export class FrameAncestors extends AbstractMultiValueDirective {
getDirectiveName() {
return 'frame-ancestors';
}
getDirectiveType() {
return DirectiveType.Navigation;
}
getMinimumCspVersion() {
return 2;
}
}