mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
* DEV: Add crossOrigin to video tag This is a follow-up commit tof144c64e13which 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 ine292c45924/app/assets/javascripts/discourse/app/lib/update-tab-count.js (L63)