Configuring Host Filtering Settings
Use the AllowedHosts setting to control ASP.NET host-header filtering for LicensePredictor.
Step 1: Open the appsettings.json file
-
Navigate to the LicensePredictor directory.
By default, this is located at:
C:\Program Files\OpeniT\LicensePredictor -
Open the
appsettings.jsonfile.
Step 2: Configure the Host Filtering Settings
-
Locate the
AllowedHostssection in theappsettings.jsonfile. -
Set
AllowedHoststo the hostnames allowed in requests to LicensePredictor. The default value is*, which allows all hostnames.warningConfigure
AllowedHostscarefully. An incorrect restriction can prevent access to the LicensePredictor.Example: appsettings.json"AllowedHosts": "*" -
Save the changes.
Step 3: Restart the LicensePredictor Service
-
Open Task Manager.
-
Under Services, restart the OpeniTLicensePredictor service.