mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
fix(core): synchronize core sanitization schema with compiler
https://github.com/angular/angular/pull/68689 recently updated the compiler schema which should be kept in sync with the core schema. Fix applied by running `pnpm bazel run //packages/core:dom_security_schema`.
This commit is contained in:
parent
1f71ebd788
commit
bfe6f6c2a5
1 changed files with 0 additions and 6 deletions
|
|
@ -115,12 +115,6 @@ export function SECURITY_SCHEMA(): {[k: string]: SecurityContext} {
|
|||
['object', ['codebase', 'data']],
|
||||
]);
|
||||
|
||||
// The below are for Script SVG
|
||||
// See: https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/href
|
||||
registerContext(SecurityContext.RESOURCE_URL, SVG_NAMESPACE, [
|
||||
['script', ['src', 'href', 'xlink:href']],
|
||||
]);
|
||||
|
||||
// Keep this in sync with SECURITY_SENSITIVE_ELEMENTS in packages/core/src/sanitization/sanitization.ts
|
||||
// The `unknown` elements refer to cases when we need to validate the input/binding in a directive (host bindings)
|
||||
// and the directive can be applied to multiple different elements (with different tag names). In this case we generate
|
||||
|
|
|
|||
Loading…
Reference in a new issue