CORS error coming on first request, subsequent requests works

Hi team, I am using R2 to store some assets (video files) for my app. I have setup a domain for this bucket - reports.empirical.run When I access this from the same origin (let's say https://reports.empirical.run/<some-path>/<some-path>/index.html), I am immediately able to play the video. But when I access it from a different origin (https://<some-name>.empirical.run/), the first request always gives CORS error, but after reload, every subsequent request works just fine. The other origin has video embedded in this format (attached screenshot) I have also configured the same origin on my Bucket's CORS policy (attached screenshot) Can anyone help me understand what is the issue here? And how can I fix it?
4 Replies
Siddharth
SiddharthOP3mo ago
screenshots - https://discord.com/channels/595317990191398933/940663374377783388/1281526514038607903 @Hard@Work Hi, can you help us on this issue ?
Hard@Work
Hard@Work3mo ago
?pings
Flare
Flare3mo ago
Please do not ping community members for non-moderation reasons. Doing so will not solve your issue faster and will make people less likely to want to help you.
Siddharth
SiddharthOP3mo ago
Got it. My bad
Want results from more Discord servers?
Add your server