If you're experiencing crossdomain issues with your Speedtest server, this can be resolved by configuring your server's OoklaServer.properties file to define a proper list of allowed domains.
Locate the Configuration File Open the OoklaServer.properties file.
Configure allowedDomains
In the OoklaServer.properties file, look for the following line:
# OoklaServer.allowedDomains = *.ookla.com, *.speedtest.net
This line is commented out by default, which means the server will accept connections from any domain. For better security and to avoid unauthorized usage of your server, it's recommended to specify only the domains that are permitted to access the server.
Add Your Allowed Domains
Uncomment the line by removing the # at the beginning and specify your domains. For example:
OoklaServer.allowedDomains = *.ookla.com, *.speedtest.net, *.yourdomain.com
-
Use
*.before a domain to include all subdomains. -
Separate multiple domains with commas.
Example:
OoklaServer.allowedDomains = *.ookla.com, *.speedtest.net, *.mycompany.com
Save and Restart
Once you've made the changes:
-
Save the
OoklaServer.propertiesfile. -
Restart the OoklaServer for the changes to take effect.