CORS headers for static assets of a worker in dev

For a worker request one could handle OPTIONS and return the headers you want but the static assets are supposed to get matched directly. How do I add CORS to them during local dev? Proxying them via worker just for dev, seems counterintuitive and wrong to me. In prod, I am on same domain so I don't need anything extra. What's the way around this?
1 Reply
hollycat
hollycatOP3w ago
Correct my understanding - if you are on different domain than the worker (regardless of dev or prod), then you can't use static assets without proxying through worker? Please help clarifying this.
Want results from more Discord servers?
Add your server