Page 1 of 1

openpopup - refused to connect.

Posted: Thursday 07 January 2021 13:44
by DeVille70
I have defined a block to openpopup with a url to a public wet site. The pop up window opens, but only show "refused to connect". This is indepedant from the url, I even tried the simple https://www.vg.no/ but same output.

Anyone who can help?

Re: openpopup - refused to connect.

Posted: Thursday 07 January 2021 14:51
by DeVille70
Seems to a problem only with urls with https - as http works fine.

???

Re: openpopup - refused to connect.

Posted: Friday 08 January 2021 14:02
by Lokonli
DeVille70 wrote: Thursday 07 January 2021 14:51 Seems to a problem only with urls with https - as http works fine.

???
Some sites do not allow to present the content in a iframe, like vg.no
(by setting the X-Frame-Options http header)

By adding forcerefresh:2 as block parameter, the content is loaded via the Dashticz CORS proxy that strips out the X-frame-option as well, so you see some content, although most internal links and images will not be present.

There is no easy workaround as far as I know.

What I could is add the option to open the popup window in a separate window. Would that be useful?

Re: openpopup - refused to connect.

Posted: Friday 08 January 2021 14:35
by DeVille70
Thanks.

forcerefresh:2 works as you said, but also has the limitations that you indicated, so it does not really do the trick.

A separate window would be fine. Grateful if you could give me a pointer on how to do that.

Alternatively, can the 'buttons' defintion be used in any useful way to overcome this?

Thanks again for your support.

Re: openpopup - refused to connect.

Posted: Friday 08 January 2021 15:32
by Lokonli
For 'url' parameters the 'newwindow' parameter is used to determine whether the url will be opened in a new window. as a new tab or as an popup frame. The same mechanism could be used for openpopup(OnOff). Currently openpopupOnOff will always open a popup frame.

I want to keep 'autoclose' functionality. I'll do some tests.

Re: openpopup - refused to connect.

Posted: Sunday 10 January 2021 19:59
by DeVille70
newwindow 0 or 1 works as intended, but both have undesired side effects that i had not considered. Since I use WallPanel for a clean interface, I have no button for back or any option to close current window.

Any ideas much appreciated.

Re: openpopup - refused to connect.

Posted: Sunday 10 January 2021 20:37
by Lokonli
DeVille70 wrote: Sunday 10 January 2021 19:59 newwindow 0 or 1 works as intended, but both have undesired side effects that i had not considered. Since I use WallPanel for a clean interface, I have no button for back or any option to close current window.

Any ideas much appreciated.
When it's not allowed to show the url in a frame, then the options are limited.

I can add autoclose support for new windows.

Re: openpopup - refused to connect.

Posted: Sunday 10 January 2021 20:49
by Lokonli
And with Fully Kiosk you could add a 'back' button at the top, which will close the new window.

Re: openpopup - refused to connect.

Posted: Monday 11 January 2021 21:46
by DeVille70
An option to autoclose new windows would be great, thanks.