Spec-Zone.ru › Angular

SecurityContext

A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property like innerHTML that could cause Cross Site Scripting (XSS) security bugs when improperly handled.

API

enum SecurityContext {
  NONE: SecurityContext.NONE;
  HTML: SecurityContext.HTML;
  STYLE: SecurityContext.STYLE;
  SCRIPT: SecurityContext.SCRIPT;
  URL: SecurityContext.URL;
  RESOURCE_URL: SecurityContext.RESOURCE_URL;
  ATTRIBUTE_NO_BINDING: SecurityContext.ATTRIBUTE_NO_BINDING;
}

NONE

HTML

STYLE

SCRIPT

URL

RESOURCE_URL

ATTRIBUTE_NO_BINDING

Description

A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property like innerHTML that could cause Cross Site Scripting (XSS) security bugs when improperly handled.

See DomSanitizer for more details on security in Angular applications.

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/SecurityContext

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API