Skip to content

Video Uploads Fail When Using New Managed CORS Origins Only #1106

Description

@ahbyass

Summary

Video uploads fail with a CORS error when the Studio URL is configured only in the new Managed CORS Origins.

Uploads succeed when the same origin is also added to Manual CORS Origins.

Steps to Reproduce

  1. Deploy Studio so URL appears in the new Managed CORS Origins.
  2. Ensure the same URL is not present in Manual CORS Origins.
  3. Open Sanity Studio.
  4. Attempt to upload a video.

Expected Behaviour

Video uploads should succeed when the origin is configured in the new Managed CORS Origins.

Actual Behaviour

Video uploads fail with a CORS error.

Workaround

Add the same origin to Manual CORS Origins.

Notes

  • Adding the origin to both Managed and Manual CORS Origins resolves the issue.
  • This effectively requires the origin to be configured twice.
  • This is misleading as Sanity indicates that the new Managed CORS Origins supersede Manual CORS Origins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions