sanity-io / visual-editing

https://visual-editing-studio.sanity.build
MIT License
29 stars 18 forks source link

Presentation tool not working using hosted studio using Safari #1675

Open eivindml opened 1 month ago

eivindml commented 1 month ago

Using presentation tool with a hosted studio works when using dev server locally. But when trying to build the project and run it, the presentation tool fails with following message: Unable to connect to visual editing. Make sure you've setup '@sanity/visual-editing' correctly.

Others on Slack are reporting the same issue: https://sanity-io-land.slack.com/archives/C0694CDMP18/p1716470649146499

eivindml commented 1 month ago

I've now pinpointed this to be an issue with Safari only.

Looks like an issue with origin.

Blocked a frame with origin "https://x-git-develop-x.vercel.app" from accessing a frame with origin "https://x-studio-git-develop-x.vercel.app". Protocols, domains, and ports must match.