I've set up an OSM Tile Server, as described here. The server is up and running, and I'm able to open the default map page in the browser ( However, when I try to pull map data from Tile Server on a page from another site using OpenLayers library, I get:
So, I need to enable CORS on Tile Server. I tried adding CORS to Apache configuration (
, but that has no effect. I tried modifying
to So, the question is: how to enable CORS on Tile Server? asked 04 Nov '14, 12:53 weekens aseerel4c26 ♦ |
The problem was actually solved by providing
answered 04 Nov '14, 13:38 weekens |
I have the same problem. Solved in this way: Add Header set Access-Control-Allow-Origin "*" In /etc/apache2/conf-available/security.conf and change the server name in tileservice_site.con ServerName map.MYSERVER.it ServerAlias a.map.MYSERVER.it b.map.MYSERVER.it c.map.MYSERVER.it Hope this help... answered 12 Sep '15, 16:36 maurisor |