标签: javascript ajax angular cors preflight
我正在尝试使用此答案https://stackoverflow.com/a/31555285/3771885中提供的iframe方法,在访问托管在子域上的REST API时阻止发送预检OPTIONS。我的前端应用程序使用Angular2。我正在使用在iframe加载时获得的window.childWindow.XMLHttpRequest()来引导应用程序的XhrFactory。我想知道由于这种方法我们是否会有任何安全妥协。