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
When using the event handlers in an iframe that points to another domain, you're required to specify the plugin id (or wildcard with '*')
Could the emit function accept an optional argument to specify the pluginId? window.parent.postMessage( { pluginMessage: [name, ...args], pluginId: '*', }, '*' )
The text was updated successfully, but these errors were encountered:
LukeFinch
changed the title
Add 'pluginId' argument to emit function for non-null iframes
Add 'pluginId' argument to emit function for non-null origin iframes
Jun 9, 2022
It is also useful for some messages to be shared between plugins I suppose, where flexibility like this would be useful. I'd explicitly specify the pluginid for security reasons still.
When using the event handlers in an iframe that points to another domain, you're required to specify the plugin id (or wildcard with '*')
Could the
emit
function accept an optional argument to specify the pluginId?window.parent.postMessage( { pluginMessage: [name, ...args], pluginId: '*', }, '*' )
https://www.figma.com/plugin-docs/creating-ui/#non-null-origin-iframes
The text was updated successfully, but these errors were encountered: