mirror of
https://github.com/defnull/fediwall.git
synced 2024-11-28 18:43:11 +01:00
Do not allow style tags in untrusted html
This commit is contained in:
parent
eecf6003e0
commit
7ffa2a2f6d
@ -28,5 +28,10 @@ import VueDOMPurifyHTML from 'vue-dompurify-html';
|
|||||||
|
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
app.use(VueMasonryPlugin)
|
app.use(VueMasonryPlugin)
|
||||||
app.use(VueDOMPurifyHTML)
|
app.use(VueDOMPurifyHTML, {
|
||||||
|
defaults: {
|
||||||
|
FORBID_TAGS: ['style'],
|
||||||
|
FORBID_ATTR: ['style']
|
||||||
|
}
|
||||||
|
})
|
||||||
app.mount('#app')
|
app.mount('#app')
|
||||||
|
Loading…
Reference in New Issue
Block a user