This article applies to PRTG Network Monitor 15.4.20 or later
Setting Value for Access-Control-Allow-Origin HTTP Response Header
You can define the value for the Access-Control-Allow-Origin HTTP response header with a registry key option as of PRTG version 15.x.20. With this registry hack you can allow any server to send HTTP API requests to PRTG. Please do so only if you are an experienced user!
Steps to Go
Caution: Please back up your system before manipulating the Windows registry!
- Open the registry editor and navigate to the following subkey:
- On a 64-bit Windows system, navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Paessler\PRTG Network Monitor\Server\Webserver
- On a 32-bit Windows system, navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Paessler\PRTG Network Monitor\Server\Webserver
- Create a new String:
- In the current subkey, right-click to open the context menu.
- Choose New | String Value
- Name the new value AccessControlAllowOriginHTTPHeader
- Set the value of AccessControlAllowOriginHTTPHeader to the name of the server you want to send API requests from.
- Right-click on AccessControlAllowOriginHTTPHeader
- Select Modify…
- In the value field, enter the server you want to allow to send HTTP API requests to PRTG, for example, http://host_name
- Confirm with Ok.
- Restart the PRTG core server to activate the settings.
With this registry key option you can allow any server to send HTTP API requests to your PRTG server.
Add comment