Kitware / itk-vtk-viewer

2D / 3D web image, mesh, and point set viewer using itk-wasm and vtk.js
https://kitware.github.io/itk-vtk-viewer/
BSD 3-Clause "New" or "Revised" License
209 stars 63 forks source link

itkVtkViewer.js served off origin fix #698

Closed PaulHax closed 1 year ago

PaulHax commented 1 year ago

After #679 Worker scripts were not bundled as blobs. So if itkVtkViewer.js is served on a different origin than the document, fetching of worker script failed due to browser security limitation. This affected the CDN bundle and dev setups.

To fix worker blobs not having full URL path which #679 addressed, pass in the itkConfig from the main thread to the worker scope so it has the full URL path.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 14.41.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: