mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 12:24:55 +00:00
f6063c684b
* DEV: Add crossOrigin to video tag
This is a follow-up commit to f144c64e139e41f176ea2ec3433a468fa49b955f
which enables the ability to generate thumbnail images for video
uploads.
In order for the html5 canvas element to create an image or blob the
source video element needs to to have the crossOrigin attribute set to
"anonymous" because a cdn is likely being used in production
environments.
We are already doing something similar in
e292c45924/app/assets/javascripts/discourse/app/lib/update-tab-count.js (L63)