refactor(xssWhitelist): remove unnecessary whitelist entries
All the deleted entries are in the default white contained and don't need to be added another time. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
committed by
Erik Michelson
parent
1a7c27470e
commit
3f50054609
@@ -18,22 +18,14 @@ whiteList.ol = ['start']
|
||||
whiteList.li = ['value']
|
||||
// allow style tag
|
||||
whiteList.style = []
|
||||
// allow kbd tag
|
||||
whiteList.kbd = []
|
||||
// allow ifram tag with some safe attributes
|
||||
whiteList.iframe = ['allowfullscreen', 'name', 'referrerpolicy', 'src', 'width', 'height']
|
||||
// allow summary tag
|
||||
whiteList.summary = []
|
||||
// allow ruby tag
|
||||
whiteList.ruby = []
|
||||
// allow rp tag for ruby
|
||||
whiteList.rp = []
|
||||
// allow rt tag for ruby
|
||||
whiteList.rt = []
|
||||
// allow figure tag
|
||||
whiteList.figure = []
|
||||
// allow figcaption tag
|
||||
whiteList.figcaption = []
|
||||
|
||||
const filterXSSOptions = {
|
||||
allowCommentTag: true,
|
||||
|
||||
Reference in New Issue
Block a user