Hi,
I restarted testing the MapQuery component, but this time putting my images locally:
In the file OpenLayers.min.js I have put this time:
http://127.0.0.1:8888/MapLame/${z}/${x}/${y}.png
Then I created an OSM Layer:
Layer: = IWCGJQMapQuery.MapQueryOptions.Layers.Add;
Layer.LayerType: = mqltOSM;
And here I come to see my tiles. (With errors: I have a pink band that appears above my image among other things, but I have the impression that I advance)
However when I want to load my tiles from a server I indeed CORS error:
Access to image at 'http: //myserver/MapLame/1/0/1.png' from origin 'http://127.0.0.1:8888' has been blocked by CORS policy: No 'Access-Control-Allow-Origin header is present on the requested resource.
Why in localhost it works and not on a server?
When I look on the net what can cause a CORS error, I get that because I want to access data from one domain from another domain. Which is not the case. Moreover we are in a WorkGroup, not in a Domain. I do not understand what this error means !
Thank