Fix EmbeddedCSS being ignored, stripped by sanitizer

This commit is contained in:
nicolas.dorier
2020-07-30 11:36:33 +09:00
parent 1fb75c908b
commit 7974633bba

View File

@@ -172,6 +172,7 @@ namespace BTCPayServer.Hosting
htmlSanitizer.RemovingStyle += (sender, args) => { args.Cancel = true; };
htmlSanitizer.AllowedAttributes.Add("class");
htmlSanitizer.AllowedTags.Add("iframe");
htmlSanitizer.AllowedTags.Add("style");
htmlSanitizer.AllowedTags.Remove("img");
htmlSanitizer.AllowedAttributes.Add("webkitallowfullscreen");
htmlSanitizer.AllowedAttributes.Add("allowfullscreen");