fluidd-core / fluidd

Fluidd, the klipper UI.
https://docs.fluidd.xyz
GNU General Public License v3.0
1.41k stars 432 forks source link

fix: ignore crossorigin in cameras by default #1152

Closed pedrolamas closed 1 year ago

pedrolamas commented 1 year ago

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.

Fixes #1150