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.
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.
The documentation team might draft this page using a large language model. A technical writer reviews every page and verifies it against the product before publishing it. A human makes the final decision.