Fix in IE – Angular 1.6.1 Disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.

When using angular 1.6.1 in IE9, IE10, IE11, I was getting the error: Disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match. This seemed to be an 1.5.x issue, that was fixed in 1.5.11, but I was getting the error in 1.6.1. To fix the error I …