mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
chore: prevent clickjacking
This commit is contained in:
parent
a961846c65
commit
518bc344dd
@ -100,6 +100,13 @@ const Markdown = ({ text, options={}, allowedTag=[], components={} }: MarkdownPr
|
||||
...allowedTag
|
||||
],
|
||||
allowedAttributes: false,
|
||||
allowedClasses: {
|
||||
'*': ['align-middle'],
|
||||
a: ['anchor', 'mr-1'],
|
||||
svg: ['octicon-link'],
|
||||
img: ['emoji', 'special']
|
||||
},
|
||||
allowedStyles: {}
|
||||
})
|
||||
}
|
||||
/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user