No, this is not a browser issue. This is a configuration error or a bug in the server.
If the rest of the admin GUI works then this is a bug in the layer preview code. It should generate a correct URL. If you are generating a http URL you do not have any security for that URL even if the server redirects to HTTPS, as that is to late. A hacker can just return different data instead of the redirect. A working website with https will work in all browsers without any configuration in the browser even when only the https port is open. Från: Stein, Michael P [US] (MS) <[email protected]> Datum: tisdag, 22 december 2020 16:04 Till: [email protected] <[email protected]> Ämne: Re: [Geoserver-users] EXT : Downloading a layer preview defaults to http If I understand correctly what you’ve done with the settings, that’s a browser issue, not a GeoServer issue. You’ll have that problem with every website that completely disables the http port. If you allow your web server to listen on the http port, it may be possible to have it redirect to https automatically. See, e.g., https://developer.jboss.org/thread/234635 for using web.xml or apache.conf to rewrite http to https (have not tried myself). For web servers other than JBoss, you’ll have to adapt the web.xml solution. If you’re using Firefox, it appears that recent versions have an https-only option. There are also extensions available. Just search for “default firefox use https” in Google and you should see your options. ( Again, I haven’t actually tried them.) If you’re using a different browser, just put that into the search instead of firefox. --------------------------------------------------------------- Michael Stein, Northrop Grumman Defense Systems From: Rob Hughes via Geoserver-users <[email protected]> Sent: Tuesday, December 22, 2020 05:07 To: [email protected] Subject: EXT :[Geoserver-users] Downloading a layer preview defaults to http Hi, We have setup our geoserver server to use https and disabled use of http. When I try to download a layer preview I get a “Hmmm… can’t reach this page” error, but if I just put https:// at the front of the url the download works fine. So it looks like the download link is defaulting to use http:// Does anybody know how to change this to default to use https:// ? Regards Rob
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
