You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to port a testing tool which is JS/TS based to run in Photino and am getting "Blocked a frame with origin "null" from accessing a cross-origin frame" error, when doing something like
let watchWindow = window.open("https://mysite.stuff.com/stuff.aspx");
let innerText = watchWindow.document.activeElement.outerHTML;
I understand, sort of, why this would happen (cross domain security) and am wondering if there is any way around this.
Basically, I want to access data in a window opened with window.open, and of course that's not working. I own the site getting opened (in fact it's "local" and on the same machine). I can make any changes (header/hacks/etc.) whatsoever to it to allow this, but I don't know if this possible, since Photino JS runs/app run null/local domain.
Is there any, ugly or not, to do this?
I can run this site I am trying to access at localhost of needed. It seems like this would work if we could serve the HTML that is in Photino from the same domain, if that was possible. I know this really would not be something needed very often.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to port a testing tool which is JS/TS based to run in Photino and am getting "Blocked a frame with origin "null" from accessing a cross-origin frame" error, when doing something like
I understand, sort of, why this would happen (cross domain security) and am wondering if there is any way around this.
Basically, I want to access data in a window opened with window.open, and of course that's not working. I own the site getting opened (in fact it's "local" and on the same machine). I can make any changes (header/hacks/etc.) whatsoever to it to allow this, but I don't know if this possible, since Photino JS runs/app run null/local domain.
Is there any, ugly or not, to do this?
I can run this site I am trying to access at localhost of needed. It seems like this would work if we could serve the HTML that is in Photino from the same domain, if that was possible. I know this really would not be something needed very often.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions