web/admin: add strict dompurify config for diagram (#11783)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2024-10-23 19:42:54 +02:00
committed by GitHub
parent 40c7fefd96
commit da73d4f784
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,10 @@ import { TemplateResult, html } from "lit";
import { unsafeHTML } from "lit/directives/unsafe-html.js";
import { until } from "lit/directives/until.js";
export const DOM_PURIFY_STRICT: DOMPurify.Config = {
ALLOWED_TAGS: ["#text"],
};
export function purify(input: TemplateResult): TemplateResult {
return html`${until(
(async () => {