#CORS Error After Upgrading Remotion from 4.0.180 to 4.0.202

12 messages · Page 1 of 1 (latest)

quartz kelp
#

Got CORS error after update from 4.0.180 to 4.0.202

quartz kelp
#

Context: I recently upgraded my Remotion dependencies from version 4.0.180 to 4.0.202:

Previous Versions:
"@remotion/cli": "^4.0.180"
"@remotion/player": "^4.0.180"
"@remotion/transitions": "^4.0.180"
"@remotion/zod-types": "4.0.180"
"remotion": "4.0.180"

New Versions:
"remotion": "^4.0.202"
"@remotion/animated-emoji": "4.0.202"
"@remotion/cli": "^4.0.202"
"@remotion/player": "^4.0.202"
"@remotion/transitions": "^4.0.202"
"@remotion/zod-types": "^4.0.202"

After this update, I started encountering CORS errors when previewing videos using the Player component. The error message looks like this:

Issue: It seems that in the previous version, videos were accessed through a proxy, resulting in URLs like:

http://localhost:3001/proxy/https://mydomain.com/backgrounds/27.mp4#t=0,71.18

In the new version, the proxy appears to have been removed or altered, which could be causing the CORS issues.

Question: Has the proxy functionality been removed or changed in Remotion 4.0.202? If so, what is the recommended workaround to prevent these CORS errors when using OffthreadVideo? How can I ensure that my videos load correctly without running into CORS issues?

#

CORS Error After Upgrading Remotion from 4.0.180 to 4.0.202

quartz kelp
#

Tried rollback to 4.0.187 and worked

#

Initially, I suspected the issue might be related to a proxy change. However, after checking the network requests in the browser’s developer tools (F12), I confirmed that the videos were not being proxied in either the old or new version. Despite this, the CORS errors only started appearing after upgrading to version 4.0.202.

When I roll back to version 4.0.187, the issue is resolved, so the problem seems to be related to something that changed in 4.0.202.

flat verge
south valley
flat verge
south valley
#

thanks!

quartz kelp
#

Thanks! will wait for this update

flat verge