使用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')請問是什么原因?
postmessage報錯
holdtom
2018-07-07 17:29:25