Angular 获取SCRIPT5022:zone.js中的SecurityError(192,25)

Angular 获取SCRIPT5022:zone.js中的SecurityError(192,25),angular,internet-explorer-11,zonejs,Angular,Internet Explorer 11,Zonejs,当我在IE11上的iframe中加载角度组件时,我在zone.js(192,25)中间歇性地得到SCRIPT5022:SecurityError 除此之外,框架正在工作,我没有注意到任何损坏 以下是有关错误的代码: try { return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs); } catch (err

当我在IE11上的iframe中加载角度组件时,我在zone.js(192,25)中间歇性地得到
SCRIPT5022:SecurityError

除此之外,框架正在工作,我没有注意到任何损坏

以下是有关错误的代码:

            try {
                return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);
            }
            catch (error) {
                if (this._zoneDelegate.handleError(this, error)) {
line 192:           throw error;
                }
            }

有人知道是什么导致了这个错误吗?我在github上也发现了这个问题,看起来是一样的-。

尝试在index.html中添加这个脚本

<script>
  __Zone_enable_cross_context_check = true;
</script>

__区域\启用\交叉\上下文\检查=真;
我通过将下面两行代码添加到polyfills.ts文件中修复了它

import 'core-js/es7/object';
import 'core-js/es7/array';