hestiaAI / hestialabs-experiences

HestiaLabs Data Experiences & Digipower Academy
https://digipower.academy
Other
7 stars 1 forks source link

🐞 [BUG]: workers blocked by Not same-origin #1236

Closed andreaskundig closed 1 year ago

andreaskundig commented 1 year ago

to reproduce

cd data-experience/deployment-examples/html-plain
python -m http.server

error message from browser console

GET https://unpkg.com/@hestia.ai/data-experience@2.0.6/dist/csv.worker.1b068ab.js Not same-origin

Security Error: Content at http://localhost:8000/deployment-examples/html-plain/ may not load data from https://unpkg.com/@hestia.ai/data-experience@2.0.6/dist/csv.worker.1b068ab.js.

possible workarounds:

andreaskundig commented 1 year ago

implementing this, you run into to the problem of loading the correct webpack url in importScripts()

https://stackoverflow.com/questions/55628146/how-can-i-use-importscripts-in-a-service-worker-when-using-webpack