v1.0.7
ivancuric
released this
04 Aug 17:30
·
17 commits
to main
since this release
-
Implemented an approach from https://github.com/CezaryDanielNowak/CrossOriginWorker to load workers cross-domain.
According to spec,
new Worker
should honor the response's CORS headers
but this doesn't work in any of the browsers, so an approach was used
that inlines the fetched resources inside aBlob
and aObjectURL
so
that they execute from the same domain.Note, that this approach won't work with certain CSPs and is not
recommended. It also may break at any point as it's skirting around some
pretty undefined browser behaviours.The recommended way is still to host the resources and the SDK on the
same domain. -
Fixed an issue where React refs weren't a valid target for
UiSettings.target
.- Updated JSdoc for
createCaptureUI
- Updated React example to use
UiSettings.target
- Updated JSdoc for