window.postMessage is dangerous.

47 views
Skip to first unread message

Seyoon Park

unread,
Jan 16, 2022, 2:18:26 PM1/16/22
to Ajax.org Cloud9 Editor (Ace)
I got this message from Snyk code.
'Setting targetOrigin to "*" in postMessage may enable malicious parties to intercept the message. Consider using an exact target origin instead.'
problem code:
line 1,740
win.postMessage(messageName, "*");
version 1.4.13

What should I do to solve this problem?
Reply all
Reply to author
Forward
0 new messages