The same-origin policy restricts how a document or script loaded from one origin can interact with a resource from another origin. https://developer.mozilla.org/en-US/docs/JavaScript/Same_origin_policy_for_JavaScript
It can also cause issues if media and scripts are on different domains.
Eg. To create effects over your video both video and script need to originate from the same domain.