Skip to content

Commit c8f0d6e

Browse files
authored
fix(lib): fix regression about postMessage target origin (#372)
1 parent 5f82f88 commit c8f0d6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/field-plugin/src/createFieldPlugin/createFieldPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const createFieldPlugin: CreateFieldPlugin = ({
5151
const origin =
5252
host === 'plugin-sandbox.storyblok.com'
5353
? 'https://plugin-sandbox.storyblok.com'
54-
: 'https://app.storyblok.com'
54+
: 'https://plugins.storyblok.com'
5555

5656
const postToContainer = (message: unknown) => {
5757
try {

packages/field-plugin/src/createFieldPlugin/createPluginActions/createPluginMessageListener/handlePluginMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const handlePluginMessage = (
1717
return
1818
}
1919

20-
// TODO check origin https://app.storyblok.com/ in production mode, * in dev mode
20+
// TODO check origin https://plugins.storyblok.com/ in production mode, * in dev mode
2121

2222
if (data.uid !== uid) {
2323
// Not intended for this field plugin

0 commit comments

Comments
 (0)