CORS from Webworker?
Actually it works using the direct URL but here I'm preloading a bunch of videos in a WebWorker:
so there is a
.fetch() involved5 Replies
Interesting, the same request outside a webworker works?
I'd believe so, I'm not totally certain so far, trying to investigate if it's my implementation or CORS issues from R2
Yeah if it works outside the WebWorker then I'd assume your CORS policy is correct (unless there's something the browser does to mess with things, but that is unlikely)
I just think I'm tired, or silly (or both tbh 😂)
Knowing that
source.format value is video/mp4… it gives video/video/mp4… 🤦
just some leftover of refactoring actually. But I definitely did forget to add the CORS at the first place!Oh haha glad this is sorted then!