HTTP Strict Transport Security (HSTS)
In the v24.1 SLM release, we added support for HSTS to improve web security. To configure HSTS, follow these steps:
-
Locate the
appsettings.jsonfile (default path:C:\Program Files\OpenLM\OpenLM Server\bin).
-
Find the
HTTPSRequestsRedirectionEnabledparameter (added after installation or upgrade) and set it totrueto enable HSTS.
-
Add an HTTPS section in the Kestrel Endpoint with the SSL link, following the SSL setup guide. Choose a port different from the standard HTTP port.

To disable HSTS, revert the HTTPSRequestsRedirectionEnabled parameter to false and remove the added HTTPS section.
note
The HTTP section must always be present in the file for the OpenLM SLM to function properly, regardless of whether the address is SSL-secured or not.