I have a computer with prtg running on subdomain1.domain.com and a web server running on subdomain2.domain.com which has a page with javascript that I am trying to get an ajax request to get sensor details via the PRTG API.
When I do this I get the CORS error to say that its from another domain. So I followed the instructions at https://helpdesk.paessler.com/en/support/solutions/articles/65707-using-the-api-getting-cors-errors but I still get the error. Even restarted the computer after adding the registry key (and the key is set to the value that is in the CORS error in the chrome console, so I know it is correct). Why is PRTG not picking up this change?
Article Comments
That is correct, I am putting the key into the windows (Windows 10) registry of the computer that is running the PRTG server. I then went into services (in windows) and restarted the PRTG core server service, when that didn't work I rebooted to make sure.
I am running version 20.3.60.1623+ of PRTG.
Jul, 2020 - Permalink
Let me check with the developer who posted the original post to make sure that method is still valid for the version of PRTG you're running.
Benjamin Day
[Paessler Support]
Jul, 2020 - Permalink
Hello,
Just to confirm, you've added this key to the PRTG server, correct?
Which version of PRTG are you running?
Benjamin Day
[Paessler Support]
Jul, 2020 - Permalink