sanity-io / visual-editing

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

Presentation tool not working using hosted studio using Safari #1675

Open eivindml opened 5 months ago

eivindml commented 5 months 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 5 months 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.

EoinFalconer commented 3 months ago

@eivindml thanks for reaching out, could you provide a bit more information with a reproduction, by all means videos or an explanation of your steps. If this is no longer an issue, please go ahead and close the issue. Thanks!