How integrate a password-protected WMS layer into an OpenLayers GIS website without entering a pw?

30 views
Skip to first unread message

schle...@outlook.de

unread,
Aug 25, 2018, 6:16:49 AM8/25/18
to OpenLayers Dev

I'm building a very small intranet site to display geodata easily. Using QGIS (2.18) and QGIS2WEB (2.34.0) I prepared geodata and created it as OpenLayers output as index.html.


A WMS layer, which is protected by username and password, is also part of the output. At the moment, however, an input mask opens, which asks for the username and password.


After input, everything works correctly. But I don't want the users of the intranet site to have to enter a username or password.


Unfortunately, the following the proposal does not work. The input mask still appears.


http://user:password@ip.de/wms10/72_sd_17_ds_gras.exe


There is no need to hide the data. They can be seen in the source text.


Is there another way to insert username and password 'automatically'?


thx

Reply all
Reply to author
Forward
0 new messages