I have an iframe inside a window. I can access all the frames from the top context using the chrome developer tools with the following:
var vn = window.frames['frame_name'];
I can also change between the frames in the developer tools using the following selections: Chrome dev tools
The iframes and the parent window have different domains and can be shown by switching the context and running the command: document.domain;
I want to be able to set the domain of iframe from the parent or using a chrome extension. Can someone help me out here? I have tried to do the following from the parent (to change domain of iframe): window.frames['framename'].domain = 'parent';
However, I get this Error: Cors error