CspOptionsBuilder
Это содержимое пока не доступно на вашем языке.
Defined in: src/http/middleware/CspOptions.ts:46
Fluent builder for CspOptionsType.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CspOptionsBuilder():
CspOptionsBuilder
Returns
Section titled “Returns”CspOptionsBuilder
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”build()
Section titled “build()”build():
Partial<T>
Defined in: src/util/OptionsBuilder.ts:51
Snapshot the set fields as an independent Partial<T> (own props only).
Returns
Section titled “Returns”Partial<T>
Inherited from
Section titled “Inherited from”withDirectives()
Section titled “withDirectives()”withDirectives(
directives):this
Defined in: src/http/middleware/CspOptions.ts:50
Parameters
Section titled “Parameters”directives
Section titled “directives”Returns
Section titled “Returns”this
withoutDefaults()
Section titled “withoutDefaults()”withoutDefaults():
this
Defined in: src/http/middleware/CspOptions.ts:54
Emit only the given directives — skip the baseline.
Returns
Section titled “Returns”this
withReportOnly()
Section titled “withReportOnly()”withReportOnly(
flag?):this
Defined in: src/http/middleware/CspOptions.ts:57
Parameters
Section titled “Parameters”boolean = true
Returns
Section titled “Returns”this
create()
Section titled “create()”
staticcreate():CspOptionsBuilder
Defined in: src/http/middleware/CspOptions.ts:47
Returns
Section titled “Returns”CspOptionsBuilder
