Hi Folks,
I think I might have asked a variation of this about this time last year but I'm better informed now with a better question!
When I'm away on my canal/river boat I like to run a tracker so friends and family can see where I am. I have Phonetack on my phone and on my Nextcloud server and it works OK. What I'd like to do is embed the Phonetrack map page from the server in my Wordpress blog but that throws an error:
/To protect your security, 192.168.178.20 will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window./
Opening in a new window was last year's work around but a bit clunky for my non-techie friends and family. So I looked into a bit more and there is loads of advice online about editing Nextcloud lib files, ie:
/www/nextcloud/lib/public/AppFramework/Http/ContentSecurityPolicy.php/
Unfortunately my Nextcloud server doesn't anything like that as far as I can see. It doesn't even have /lib/public/
Maybe because it's actually NextcloudPi which comes preconfigured as an SD card image for the Pi. I could create the file and insert the recommended lines but would it even be read if the rest of the OS isn't expecting it? And will I bugger up something else?
Any other suggestions? (But please not 'start again with a fresh install of standard Nextcloud' The Pi 'just works'.)
Hi Phil,
You say it is a bit tricky for non tech people to open in a new window. How about you make it to open in a new window by default?
Use HTML a target tag to force that, like here:
https://www.w3schools.com/tags/att_a_target.asp
Cheerio! Bart
W dniu poniedziałek, 14 lutego 2022 Phil Thane phil@pthane.co.uk napisał(a):
Hi Folks,
I think I might have asked a variation of this about this time last year
but I'm better informed now with a better question!
When I'm away on my canal/river boat I like to run a tracker so friends
and family can see where I am. I have Phonetack on my phone and on my Nextcloud server and it works OK. What I'd like to do is embed the Phonetrack map page from the server in my Wordpress blog but that throws an error:
/To protect your security, 192.168.178.20 will not allow Firefox to
display the page if another site has embedded it. To see this page, you need to open it in a new window./
Opening in a new window was last year's work around but a bit clunky for
my non-techie friends and family. So I looked into a bit more and there is loads of advice online about editing Nextcloud lib files, ie:
/www/nextcloud/lib/public/AppFramework/Http/ContentSecurityPolicy.php/
Unfortunately my Nextcloud server doesn't anything like that as far as I
can see. It doesn't even have /lib/public/
Maybe because it's actually NextcloudPi which comes preconfigured as an
SD card image for the Pi. I could create the file and insert the recommended lines but would it even be read if the rest of the OS isn't expecting it? And will I bugger up something else?
Any other suggestions? (But please not 'start again with a fresh install
of standard Nextcloud' The Pi 'just works'.)
-- Phil Thane www.pthane.co.uk Tweet @pthane 01767 449759 07582 750607
To unsubscribe send an email to main-leave@lists.alug.org.uk http://www.alug.org.uk/ Unsubscribe? See message headers or the web site above!