In v1.25.0 we added a new crossorigin="anonymous" attribute to the <video> and <img> elements used by the cameras, but this introduced a bug where cameras that are accessed across domains without Access-Control-Allow-Origin "*" header set by the server would fail to load with a CORS error.
This PR adds a new crossorigin property that allows setting the attribute when needed, but defaults to undefined so it won't get output in that case.
In v1.25.0 we added a new
crossorigin="anonymous"
attribute to the<video>
and<img>
elements used by the cameras, but this introduced a bug where cameras that are accessed across domains withoutAccess-Control-Allow-Origin "*"
header set by the server would fail to load with a CORS error.This PR adds a new
crossorigin
property that allows setting the attribute when needed, but defaults toundefined
so it won't get output in that case.Fixes #1150