This will then work without the need for a proxy.
If your SOS instance isn’t setup for CORS, then install the proxy.cgi script (distributed with OpenLayers) into a path under your web server that is capable of running CGI binaries. (This web server is where you intend to host SOS.js.) For example, the default path under Apache is /path/to/web-server-root/cgi-bin, which resolves to a URL of http://your.web-server/cgi-bin/proxy.cgi. Edit the proxy.cgi script, and add the hostname and port of your SOS instance (and any others you wish to query) to the allowedHosts array. For example:
allowedHosts = [mysoshost.mydomain:8080, localhost:8080]
|||For example, if you have installed the 52°North SOS backend, then you need to configure Tomcat for CORS. Depending on the used version this configuration can be included.|