Is cross-origin postMessage broken in IE10?

后端 未结 8 2207
星月不相逢
星月不相逢 2020-11-27 11:06

I\'m trying to make a trivial postMessage example work...

  • in IE10
  • between windows/tabs (vs. iframes)
  • across origins

8条回答
  •  借酒劲吻你
    2020-11-27 11:36

    This Q is old but this is what easyXDM is for, maybe check it out as a potential fallback when you detect a browser that does not support html5 .postMessage :

    https://easyxdm.net/

    It uses VBObject wrapper and all types of stuff you'd never want to have to deal with to send cross domain messages between windows or frames where window.postMessage fails for various IE versions (and edge maybe, still not sure 100% on the support Edge has but it seems to also need a workaround for .postMessage)

提交回复
热议问题