mirror of
https://github.com/defnull/fediwall.git
synced 2024-11-29 02:53:33 +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