From my html page I open another link (in a separate tab) and I want to update it every 5 seconds. But the request occurs on another domain:

Uncaught SecurityError: Blocked a frame with origin " http: // localhost " from accessing a frame with origin " https://www.google.by ". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.

I open a new tab like this:

var win = window.open("https://www.google.com", "tab"); setInterval(function () { win.location.reload() }, 5000); 

Please help me deal with this problem.

    1 answer 1

    Understood. You cannot read the location property, but you can write data, so reload replaced win.location.href = url;
    Source - Exception: entry in location