iframe嵌套弹框的,导致无法加载弹框?

在主平台中使用iframe签入子平台
子平台的弹框是confirm
但是iframe中调用弹框,会报错

A different origin subframe tried to create a JavaScript dialog. This is no longer allowed and was blocked. See https://www.chromestatus.com/feature/5148698084376576 for more details.

image.png
看了下那个网址说明,好像是跨域导致的,chrome不支持alert和confirm纯js的弹框

阅读 4.5k
推荐问题