如何跨域使用window.postMessage?

问题描述 投票:0回答:0

看起来 window.postMessage 的目的是允许不同域上托管的窗口/框架之间进行安全通信,但实际上在 Chrome 中似乎并没有允许

场景如下:

  1. 在域 A 的页面中嵌入
javascript html google-chrome xss postmessage
© www.soinside.com 2019 - 2024. All rights reserved.