ICspDirective
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Content Security Policy directive of the organization.
export interface ICspDirective
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
string | (ALPHA) Name of the directive, for example | ||
string[] | (ALPHA) Sources allowed by the directive, for example |
Property details
ICspDirective.idpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Name of the directive, for example script-src or img-src.
id: string;
ICspDirective.sourcespropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Sources allowed by the directive, for example 'self', https://example.com or *.example.com.
sources: string[];