I want to use the video.min.js library in widget, when loading it from OH static directory I get this error:
Refused to create a worker from 'blob:http://<OH>/f675bf28-a6df-4b59-b032-23e6e02326c6' because it violates the following Content Security Policy directive: "script-src 'self' 'sha256-5hvlzGKhlKhafFjW6G/cRVpM/e+JewYxe/pLpQ5Kj9M='". Note that 'worker-src' was not explicitly set, so 'script-src' is used as a fallback.
Well @Wolfgang_S, it explains why we are getting this error and what needs to be changed. However, the CSP policy is set top level in the element of HabPanel and can only be adjusted if the openhab team is willing to change it for this purpose. I can’t change it at the widget level.
It means that you need explicitly add blob: data schema to default-src or worker-src.