콘텐츠로 이동
한국어

CspOptionsBuilder

이 콘텐츠는 아직 번역되지 않았습니다.

Defined in: src/http/middleware/CspOptions.ts:46

Fluent builder for CspOptionsType.

new CspOptionsBuilder(): CspOptionsBuilder

CspOptionsBuilder

OptionsBuilder.constructor

build(): Partial<T>

Defined in: src/util/OptionsBuilder.ts:51

Snapshot the set fields as an independent Partial<T> (own props only).

Partial<T>

OptionsBuilder.build


withDirectives(directives): this

Defined in: src/http/middleware/CspOptions.ts:50

CspDirectives

this


withoutDefaults(): this

Defined in: src/http/middleware/CspOptions.ts:54

Emit only the given directives — skip the baseline.

this


withReportOnly(flag?): this

Defined in: src/http/middleware/CspOptions.ts:57

boolean = true

this


static create(): CspOptionsBuilder

Defined in: src/http/middleware/CspOptions.ts:47

CspOptionsBuilder