3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
257 stars 143 forks source link

[Bug]: If page is loaded thru http protocol (not https) then all user java scripts not loaded #4777

Closed ygorigor closed 1 month ago

ygorigor commented 1 month ago

What is the bug? (in English)

If a project page is loaded thru http protocol (not https) then all user java scripts not loaded on first load. Have to refresh page once.

Steps to reproduce the issue

  1. Load a project web page using http protocol
  2. All user defined java scripts are not loaded
  3. Refresh webpage. OR
  4. Load a project web page using http protocol
  5. Press CTRL + F5
  6. All user defined java scripts are not loaded
  7. Refresh webpage.

Versions, safeguards, check summary etc

Versions :

List of safeguards :
* Mode : normal * Allow parent folder : yes * Number of parent : 2 folder(s) * Prevent other drive : yes * Prevent PG service : no * Prevent PG Auth DB : no * Force PG user&pass : no * Prevent ECW : yes

Check Lizmap plugin

Operating system

Ubuntu 24.04, Windows 11

Browsers

Chrome, Microsoft Edge

Browsers version

Chrome 125

Relevant log output

No response

nboisteault commented 1 month ago

@ygorigor I don't think we will fix this issue as http is an insecure protocol.

ygorigor commented 1 month ago

Ok @nboisteault. As workaround I added a check, if page is through http it will be reloaded one time.