I have a site that loads on homolog.example.com
, but load all assets from homolog-assets.example.com
. This initial load is okay, but a lib I'm using tries to create a Worker, but when it does, I get the error:
SecurityError: Failed to construct 'Worker' Script at 'https://homolog-assets.example.com/js/script.js' cannot be accessed from origin 'https://homolog.example.com'.
Is there a way to tell the browser that scripts loaded from that domain can create Workers and things like that?