You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ToDo: In development we need to load localhost:3300constorigin=typeoftargetOrigin==='string'
? targetOrigin
: host==='plugin-sandbox.storyblok.com'
? 'https://plugin-sandbox.storyblok.com'
: 'https://app.storyblok.com'
The text was updated successfully, but these errors were encountered:
Describe the bug
Both the sandbox and editor (in Storyblok) has an input field where you can specify the URL of the field plugin:
But the field plugin is now refusing to post message to any other host than
app.storyblok.com
, meaning that you can't display previews anymore.For example, the code block field plugin uses an older version of the library, which means that you can preview it with a Vercel preview:
https://plugin-sandbox.storyblok.com/field-plugin?url=https%3A%2F%2Fstoryblok-code-block.vercel.app%2F
But this doesn't work with the latest version of the library.
To Reproduce
Try to use the sandbox or editor with any field plugin on the most recent version:
Or try to use the sandbox in local development mode:
See https://plugin-sandbox.storyblok.com/field-plugin?url=https%3A%2F%2Fstoryblok-code-block.vercel.app%2F
Expected behavior
For previews to work again, as outlined in the docs: https://www.storyblok.com/docs/plugins/field-plugins/continuous-delivery#preview-urls
Cause
This line:
The text was updated successfully, but these errors were encountered: