Ensuring your OoklaServer allows Speedtest Custom domains

In your OoklaServer.properites file, OoklaServer.allowedDomains enables you to limit access to your OoklaServer. To ensure best testing results when using Speedtest Custom, your OoklaServer should either:

Accept connections from all domains (per default)

Explicitly allow connections from *.speedtestcustom.com

Without these configurations, the client browser may run into same-origin errors and can impact the test results. If this happens, you would see a similar error in the developer console when the download or upload test runs:

Failed to load http://myspeedtest.mysite.com:8080/hello?nocache=2ad8a0e9-d70c-4afa-8d4a-24b984e4ef8c: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mycompany.speedtestcustom.com' is therefore not allowed access.

Accept connections from all domains (per default)

By default, the OoklaServer.allowedDomains property is commented out and will accept connections from all domains. This is equivalent to setting the following:

OoklaServer.allowedDomains = *

Explicitly allow connections from *.speedtestcustom.com while limiting access to your OoklaServerIf you need to restrict access to only accept test from specific domains, please make sure to include both *.speedtestcustom.com, and the particular URL/domain you are embedding your test.