I'm currently looking at SolidJS but have no intention of not using my favourite framework for the backend stuff, Phoenix. My idea was to reference the Vite dev server in development mode from the Phoenix markup. This works very well for JS/TS/CSS but fails on web workers due to cross site issues, Phoenix runs on port 4000 and any browser will refuse to load a worker from another origin, even if it's only the port.
I've tried setting CSP: worker-src to all kinds of different options, but no luck. Does anyone have any experience with a setup like this? Building things are fine because then Phoenix will serve the static assets, it's only in dev-mode this is a problem