在BrowserStack IE 9(目前为RC 2)中测试我的Angular 2应用程序时,我注意到我的应用程序抛出了“#34; Access is Denied"错误。在我的本地工作正常,这就是为什么:如果我改变我的互联网选项 - 本地内联网到中低或低应用程序加载就好了。如果我更改为中等或更高,我会收到错误。 我需要支持IE 9.任何想法都赞赏。 这是我的索引文件:
<!DOCTYPE html>
<html class="no-feature.html">
<noscript>
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=no-feature.html">
</noscript>
<head>
<base href="/">
<title>POC</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Angular 2 Starter">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='//fonts.googleapis.com/css?family=Open+Sans:300,400,600' rel='stylesheet' type='text/css'>
<link href="lib/bootstrap.css" rel="stylesheet" />
<link href="lib/bootstrap-theme.css" rel="stylesheet" media="screen"/>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href="lib/toastr.min.css" rel="stylesheet" type="text/css"></link>
<link href="styles/styles.css" rel="stylesheet" />
<link href="styles/main.css" rel="stylesheet" />
<!-- DO NOT CHANGE THE ORDER OF THESE DEPENDENCIES!! -->
<script src="lib/modernizr.js"></script>
<script src="customizr.js"></script>
<script>
if(missingFeatures.count !== 0){
window.location.href = 'no-feature.html'
}
</script>
<script src="lib/shim.min.js"></script>
<script src="lib/system-polyfills.js"></script>
<script src="lib/shims_for_IE.js"></script>
<script src="lib/Reflect.js"></script>
<script src="lib/zone.js"></script>
<script src="lib/system.src.js"></script>
<script src="systemjs.config.js"></script>
<script src="lib/ng2-translate.js"></script>
<script src="lib/jquery.js"></script>
<script src="lib/bootstrap.js"></script>
<script src="lib/toastr.min.js"></script>
<script src="lib/hammer.js"></script>
<head>
<body>
<main>
<app-container>
Loading...
</app-container>
</main>
</body>
<script>
System.import('app').catch(function(err){ console.error(err); });
</script>
<script>
if (window.location.search.indexOf('?customer=deutz') === 0)
document.write('<link href="styles/deutz/customer.css" rel="stylesheet" />');
else if (window.location.search.indexOf('?customer=sunbelt') === 0)
document.write('<link href="styles/sunbelt/customer.css" rel="stylesheet" />');
else
document.write('<link href="styles/default/customer.css" rel="stylesheet" />');
</script>
<script src="ga.js"></script>
</html>