[Review] Map Layers widget - Map layer validation failed for URL

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?

Parents Reply
  • 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. 

      

Children