I have code that has worked for years without any issue until Microsoft's latest Cumulative Security Update came out this February. When KB4486474 is installed for IE11 (Version 11.590.17134.0, Update Versions: 11.0.110), the following line now throws an "Access Is Denied" error.
o.src = "/img/menuTick.png";
Variable "o" is an IMG element. This only seems to affect assignments to the src property of an IMG element as far as I can see. The only way I've found to get around this is assigning the full URL.
o.src = "http://mywebsite.com/img/menuTick.png";
var l = window.location; o.src = l.href.replace(l.pathname, "/img/menuTick.png");
If I uninstall the KB4486474 update for IE11, the original code works fine again.
Has anyone else come across this issue, and if so, is there any way around this as I literally have thousands of assignments to relative paths in the code, and don't want to have to replace with the above fix for every one of them?