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
Hey thanks for the PR awesome and the issue! I think maybe we should add targetOrigin or an origin option to the constructors for post message, and then use that to filter. leaving a comment on the PR then, we'll get this merged in :D
Describe the bug
The window handler receives messages from any domain and resolves it as the RPC response.
Expected behavior
To check the message origin and act accordingly
https://github.com/open-rpc/client-js/blob/master/src/transports/PostMessageWindowTransport.ts#L49
Should check for message origin.
Security link: https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage#security_concerns
The text was updated successfully, but these errors were encountered: