ios14.4.2 对于iframe的要求越发严格,是否可以控制 is_postmsg,可以避免是用 top; error:The frame attempting navigation of the top-level window is cross-origin or untrusted and the user has never interacted with the frame.
is_postmsg 使用问题https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb 返回的页面有下面一段代码,在访问时是否可以配置 is_postmsg 值 [代码]var[代码] [代码]is_postmsg=[代码][代码]""[代码][代码];[代码][代码] [代码][代码]if[代码][代码](is_postmsg==[代码][代码]"1"[代码][代码])[代码][代码] [代码][代码]{[代码][代码] [代码][代码]parent.postMessage(JSON.stringify({[代码][代码] [代码][代码]action : [代码][代码]"send_deeplink"[代码][代码],[代码][代码] [代码][代码]data : {[代码][代码] [代码][代码]deeplink : [代码][代码]"weixin://wap/pay?......."[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}), [代码][代码]""[代码][代码]);[代码][代码] [代码][代码]}[代码]
2021-04-09