fix: resize large images attachments on upload (#1824)

This commit is contained in:
Zaidhaan 2023-03-01 05:58:19 +08:00 committed by GitHub
parent 2842a5f383
commit 32eaee82e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 58 additions and 2 deletions

View file

@ -206,7 +206,7 @@ export default defineNuxtConfig({
'font-src': ['\'self\''],
'form-action': ['\'none\''],
'frame-ancestors': ['\'none\''],
'img-src': ['\'self\'', 'https:', 'http:', 'data:'],
'img-src': ['\'self\'', 'https:', 'http:', 'data:', 'blob:'],
'media-src': ['\'self\'', 'https:', 'http:'],
'object-src': ['\'none\''],
'script-src': ['\'self\'', '\'unsafe-inline\'', '\'wasm-unsafe-eval\''],