title: IE 11 Permission Denied Javascript
body: <p>I have created a trivial HTML/JS/Angular page (below) which when first rendered in IE 11, throws a Permission Denied exception. See images of the debugger console below. My IE version is 11.0.9 on Windows 7.</p>
  
  <p>[EDIT] See source below. Meta tag included, but this does not resolve the issue. txs</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-app="ie11bug"&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
          &lt;title&gt;IE 11 Bug&lt;/title&gt;
          &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
  
     &lt;body&gt;
         &lt;div ng-controller="AppController"&gt;
             Hello {{pageTitle}}
         &lt;/div&gt;
         &lt;script&gt;
             var app = angular.module('ie11bug', []).controller('AppController', function($scope) {
                 $scope.pageTitle = "This will not appear when page is 1first loaded";
             });
         &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have tried various versions of Angular from 1.4 to 1.6, same result. After clearing the cache and loading the page the error occurs. If I then reload, the page successfully renders.</p>
  
  <p>The error always seems to be thrown when the factory method (called from the $exceptionHandler) assigns the $log service into the cache.</p>
  
  <p>I also get Permission denied when simply trying to log to the console</p>
  
  <pre><code>&lt;script&gt;
    console.log("hello");
  &lt;/script&gt;
  </code></pre>
  
  <p>Any help/ideas would be appreciated. </p>
  
  <p><a href="https://i.stack.imgur.com/HrvY3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HrvY3.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/IiP2r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IiP2r.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/9Q54q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9Q54q.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/tsw0q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tsw0q.png" alt="enter image description here"></a> </p>