mirror of https://github.com/zulip/zulip.git
base: Play videos in new tab instead of downloading them.
We add `Content-Disposition: inline` header to commonly supported video MIME types so that when we `Open` them in lightbox, they play in new tab. This will require a follow-up database migration to apply to previously uploaded videos.
This commit is contained in:
parent
0b5e45d1a7
commit
9042cd989b
|
@ -29,6 +29,8 @@ INLINE_MIME_TYPES = [
|
|||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp",
|
||||
"video/mp4",
|
||||
"video/webm",
|
||||
# To avoid cross-site scripting attacks, DO NOT add types such
|
||||
# as application/xhtml+xml, application/x-shockwave-flash,
|
||||
# image/svg+xml, text/html, or text/xml.
|
||||
|
|
Loading…
Reference in New Issue