I'm reading out the header of a webpage through:
var srccat=$("*").contents().filter(function(){return this.nodeType == 8;}).get(0).nodeValue;
Then I'm doing some splits and all, which is all working fine. (I have to read out the header, because a variable is being 'displayed' as text and there is no other way to get to this info...)
However, the page isn't rendering correctly (because it depends on this) and is throwing an error in the console:
"SCRIPT5: Access is denied."
According to the link to "SCRIPT5" (https://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=EN-US&k=k(VS.WebClient.Help.SCRIPT5)), it states: "A script tried to access data from a source other than the host of the current page. The Same Origin Policy followed by Internet Explorer and other browsers allows scripts to access data only from sources with the same scheme, host, and port of the URL of the current page." I assume this has to do with Backbone. I'm not THAT familiar with it, but I understand that it works as a page within a page, so that in my case it's reading information from the 'parent' page.. and I guess this is not allowed in IE...
The error ONLY occurs in IE(11), not in Firefox or Chrome. Is there a workaround for this?