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?
openpopup - refused to connect.
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 32
- Joined: Friday 04 December 2015 21:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Sandnes, Norway
- Contact:
Re: openpopup - refused to connect.
Seems to a problem only with urls with https - as http works fine.
???
???
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: openpopup - refused to connect.
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?
-
- Posts: 32
- Joined: Friday 04 December 2015 21:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Sandnes, Norway
- Contact:
Re: openpopup - refused to connect.
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.
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.
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: openpopup - refused to connect.
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.
I want to keep 'autoclose' functionality. I'll do some tests.
-
- Posts: 32
- Joined: Friday 04 December 2015 21:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Sandnes, Norway
- Contact:
Re: openpopup - refused to connect.
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.
Any ideas much appreciated.
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: openpopup - refused to connect.
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.
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: openpopup - refused to connect.
And with Fully Kiosk you could add a 'back' button at the top, which will close the new window.
-
- Posts: 32
- Joined: Friday 04 December 2015 21:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Sandnes, Norway
- Contact:
Re: openpopup - refused to connect.
An option to autoclose new windows would be great, thanks.
Who is online
Users browsing this forum: No registered users and 1 guest