How to add WMS services as background? All services I try end with "Map layer validation failed for URL" error.Is it because of CORS?
How to verify if WMS server is CORS-compliant? I do not see such response from .au server.
I would gladly use on-premise WMS but Bentley no longer have such product so have to rely on 3rd party servers.
It seems the server only returns the Access-Control-Allow-Origin header in its response if it has received a Origin header in the request. Typing the address directly in your web browser will not add an Origin header since it is the original request. The CORS system is for web requests that are done within the code of a web page, in case they go to a different domain.
The way I've simulated it is by using an http tracing application (debugging proxy) that let me replay past requests and edit them. I was able to manually add an Origin header with a fake domain to verify if CORS was supported.
Thanks was able to reproduce it in Firefox using "Edit and resend" option in Dev tab.
And what is wrong with this link? http://lvmgeoserver.lvm.lv/geoserver/ows?service=wms&version=1.3.0&request=GetCapabilities&layer=public:OSM
This have a Access-Control-Allow-Origin: * but still error.
Hi Oto, The URL must be in https and not http. Try to add the "s" and it should work. I have been able to attach your server by adding the "s" to the URL.