使用postmessage报错,Failed to execute 'postMessage' on 'DOMWindow'
使用postMessage发送跨域消息,window.postMessage('hello there!', location.protocol + '//a.b.com');
但是报了下面的错误:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://a.b.com') does not match the recipient window's origin ('http://c.e.com')请问是什么原因?
holdtom
缥缈止盈
随时随地看视频慕课网APP