Re: MapStore GeoServer containers CORS error

38 views
Skip to first unread message
Message has been deleted

Lorenzo Natali

unread,
May 27, 2025, 3:47:26 AMMay 27
to mapstore-users
Hi,
I close this request because I see it has been cross-posted here:


Il giorno venerdì 23 maggio 2025 alle 09:46:53 UTC+2 candank...@gmail.com ha scritto:
Hello,
I installed MapStore and GeoServer containers inside the same Docker network, and enabled GeoServer CORS while creating the container by running:
docker run -it --name geoserverivrea --network ivreanetwork -p8081:8080 -d --mount type=bind,src=/home/kilsedar/geoserver_data,target=/opt/geoserver_data --env INSTALL_EXTENSIONS=true --env STABLE_EXTENSIONS="ysld,ogcapi-features,wps" --env CORS_ENABLED=true docker.osgeo.org/geoserver:2.27.1
This in fact works outside the container, I can make this request for instance from a web application inside an Apache server: http://localhost:8081/geoserver/ows?typeName=topp%3Astates&version=1.1.0&service=WFS&acceptversions=2.0.0&request=GetFeature&outputFormat=application%2Fjson&srsname=EPSG%3A3857
But from inside MapsStore, no matter what I do I keep getting a CORS error. I added, inside localConfig.json (inside the container /usr/local/tomcat/webapps/mapstore/configs/localConfig.json), under "useCORS", both container domain ("http://geoserverivrea:8080/geoserver") and host-facing domain ("http://localhost:8081/geoserver"), but neither solved the issue. 
Do you have any suggestions? What am I missing?
Thanks
Reply all
Reply to author
Forward
0 new messages