I'm getting this problem in Chrome (Running the files locally) when I try to change the src of an Iframe inside iframe, I am getting this Error Message
Error = Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin null from accessing a frame with origin null. Protocols, domains, and ports must match.
This the code that I'm using to retrieve the iframe
iframe = $(iframe).contents().find('iframe');
iframe.attr(src, url);`
I don't get this issue when I upload the files to the server. But if I open them locally I get the error.
It works good in firefox and safari.
How can i do this in chrome and in other browser ?