Questions tagged [cors]

CORS in this context is intended to mean Cross-Origin Resource Sharing, a W3C recommended specification that extends HTTP with a number of Origin and Access-Control request and response headers, to provide browsers and servers a way to request remote renounces. Do not use for questions about Continuously Operating Reference Stations

Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

GeoServer layer has been blocked by CORS policy

I have a site example.ru on a remote server with ip 90.156.XXX.XX, it runs on https. I installed GeoServer on this remote machine and ran it on 90.156.XXX.XX:8080, i.e. http://90.156.XXX.XX:8080/...
Ilya's user avatar
  • 23
0 votes
1 answer
25 views

Geoserver OAuth2 Community Extension - Java Runtime Error, possibly CORS?

I am trying to enable to OAuth2 community extension in Geoserver 2.24.2 I am running it on a Google Cloud Compute Engine VM as a .war on Tomcat9 proxying through NGINX (where I deal with SSL). I get ...
staf's user avatar
  • 326
0 votes
1 answer
92 views

No 'Access-Control-Allow-Origin' header is present on the requested resource when using arcgis javascript in node.js

I meet a problem when using ArcGIS JavaScript (version 4.9) to handle map data. the following is my code snippet: esriConfig.request.trustedServers.push("https://XXX.XXX.XX.118:3070"); ....
abramhum's user avatar
  • 123
-1 votes
1 answer
60 views

CORS problem to call WFS layer using OL-Geoserver

The problem I have is with the well known CORS configuration that there is already so much documentation to solve it but I am not really succeeding. I am working in Ubuntu v.22 I am working on a ...
ANDRÉS's user avatar
  • 91
1 vote
2 answers
77 views

Error when using CORS from TxDOT RTN to georeference DJI Phantom 4 RTK and Emlid Reach RS2

I use CORS from TxDOT RTN to georeference DJI Phantom 4 RTK and Emlid Reach RS2. I have been using it in Corpus Christi, TX with no issues. I do Structure from Motion (SfM) in Metashape, verify the ...
Jose Luis Landivar S's user avatar
0 votes
0 answers
46 views

Error in getting metadata from Geonetwork using API

I need to get metadata from the Geonetwork using Api for displaying the data in the grid but when I use to call api using XMLHttpRequest it throws me error with 403 forbidden CORS issue even I had ...
Masthan Patan's user avatar
1 vote
0 answers
41 views

GeoServer 2.23.1 CORS Issue [duplicate]

After upgrading to GeoServer 2.23.1 we are getting CORS issue. We are installing GeoServer within an ECS Cluster in AWS, Tomcat 9 is being used as the server. We have followed the documentation and ...
Viswas Menon's user avatar
0 votes
0 answers
165 views

CORS issue with GeoServer 2.2X version with Tomcat

We are using GeoServer 2.2x in our environment, we are directly using GeoServer WAR in Docker file. Only additional configuration added in web.xml with CORS filter enabled and env variables to set ...
Vidhya M's user avatar
1 vote
0 answers
130 views

Cannot use the delete method on the REST API GeoServer

I try to use GeoServer in docker file from kartoza/geoserver with version docker.io/kartoza/geoserver:2.20.3 But I have some problem when use a REST API GeoServer with delete method The code for ...
Misdan's user avatar
  • 11
0 votes
0 answers
873 views

CORS in Maplibre

The problem is reproduced in URL below: https://jsfiddle.net/kochizufan/e8jgbu9q/ const libre = new maplibregl.Map({ container: 'libre', style: { version: 8, sources: { s_contour7: { ...
kochizufan's user avatar
0 votes
0 answers
280 views

How to avoid WFS filtering CORS error in XAMPP

The XAMPP is serving as webserver and the website is accessible via http://localhost/Portal/Basic/. I am using WFS (Web Feature Service) from the external server https://geoservices.krzn.de/security-...
ravindraji4's user avatar
3 votes
1 answer
3k views

Why is ArcGIS Server JavaScript API throwing a CORS error when Leaflet does not, for the same WMS layer?

I'm trying to add a publicly-accessible WMS layer to an ArcGIS Server JavaScript API v4 map, and am encountering a CORS error. See the simple demo which loads the ArcGIS JS API WMS layer: // ArcGIS ...
Stephen Lead's user avatar
  • 21.1k
1 vote
0 answers
577 views

How to use esri-resource-proxy with React and ArcGIS Server JavaScript API?

I'm trying to add a publicly-accessible WMS layer to an ArcGIS Server JavaScript API v4 map: https://environment.data.gov.uk/spatialdata/special-protection-areas-england/wms I'm adding it as a WMS ...
Stephen Lead's user avatar
  • 21.1k
0 votes
1 answer
372 views

Leaflet displaying a single GeoJSON layer even though multiple are supplied

I have a simple Leaflet map and I am trying to display multiple point layers. I know this question has been asked quite a few times and I have tried every single solution but didn't work. I get valid ...
akudekar's user avatar
3 votes
1 answer
2k views

GeoServer Docker - CORS error

I am using a GeoServer docker image from here and running a docker container on CentOS Linux. GeoServer Docker I have mounted Geoserver data directory as external and able to successfully run the ...
Senthil S's user avatar
0 votes
1 answer
971 views

Web-GIS cannot display WMS data because of CORS header ‘Access-Control-Allow-Origin’ missing

I have an OpenLayers application in a secured connection (with apache2 and port 443) in a machine A and I want to display data from a GeoServer WMS which it exists in a machine B with insecured ...
Capdi's user avatar
  • 597
-1 votes
3 answers
272 views

GeoServer not responding to OpenLayers 6 GetFeature request, after enabling CORS filter in the file located at webapps/geoserver/WEB-INF/web.xml

instructional URL/link of enabling CORS for GeoServer File location/Directory As given on the website, I uncommented my the filter in web.xml file to enable CORS, but now I can not access the ...
Abhilash Singh Chauhan's user avatar
3 votes
1 answer
2k views

CORS issues when trying to access NASA layers from ArcGIS JS API

I am trying to bring an ImageMapLayer into an ArcGIS JS API project. The layer is here: https://maps.disasters.nasa.gov/ags04/rest/services/ca_fires_202008/sentinel2/MapServer I am creating the layer ...
Seth Lutske's user avatar
4 votes
1 answer
3k views

GeoServer behind a reverse proxy with CORS problems using buttons

I've set up a simple GeoServer on a Ubuntu server, behind an NGINX reverse proxy. The proxy is at map.mydomain.com and passes incoming port 80 requests on a subdomain to another internal port. I can ...
Incipient's user avatar
0 votes
1 answer
66 views

It is possible to enable CORS in an old Windows GeoServer version (2.6.1) using Jetty 6.1.8?

Of course I found some info about how I have to do this. But I cannot find the jetty-servlet package matching this old version.
borja's user avatar
  • 13
1 vote
1 answer
4k views

Allow CORS on GeoServer with Tomcat and Nginx

I've used this procedure for install GeoServer on a server based on Ubuntu 20.04 with Tomcat and Nginx. At the end I've putted under HTTPS my subdomain. I can see without problems the WMS services and ...
MaxDragonheart's user avatar
4 votes
1 answer
1k views

Earth Engine NodeJS API: Failed to load resource and CORS policy issue

I am developing a GEE nodeJS custom application. I have gone through the documentation and source(https://github.com/google/earthengine-api/tree/master/demos/server-auth-nodejs). I setup the service ...
user154666's user avatar
1 vote
0 answers
117 views

Travel Time Isochrone Map - Http Post request [closed]

I am trying to send a request to Travel Time Platform for an isochrone using the API - https://www.traveltimeplatform.com/ // Coordinates for Manchester Central Foodbank in Lat Lng var ...
Stuey17's user avatar
  • 199
2 votes
1 answer
708 views

Layer displaying correctly with OpenLayers and GeoServer as WMS but giving CORS error when trying to display the same layer as WFS

I have the following map which works perfectly: import 'ol/ol.css'; import {Map, View} from 'ol'; import TileLayer from 'ol/layer/Tile'; import TileWMS from 'ol/source/TileWMS'; import BingMaps from '...
David1212k's user avatar
3 votes
1 answer
3k views

Enabling CORS in GeoServer 2.15.1 (jetty 9.4.12)? - NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet

I am creating a leaflet app. For this I have to use a Geoserver. I found that CORS was not enabled, because I get this error message: Reason: CORS header 'Access-Control-Allow-Origin' missing: https:...
astridx's user avatar
  • 605
0 votes
0 answers
1k views

curl REST API to AJAX

I'm trying to make a web application that is able to : 1) Upload raster data to GeoServer so when I use this command on cmd it works curl -u admin:geoserver -v -XPUT -H "Content-type: image/tiff" --...
Ayoub Beltarchi's user avatar
2 votes
0 answers
74 views

Updating local datum to latest ITRF?

I have read that Australia is updating its local reference frame. If a small territory has a complete CORS GNSS network aligned to ITRF2000, does it need to update the CORS network to the latest ...
clm's user avatar
  • 21
2 votes
0 answers
506 views

Problem with CORS on GeoServer running on Apache Tomcat

I am currently working on a little GIS web app using MapBox on the frontend and GeoServer as my WMS. I have GeoServer 2.15.0 running under Apache Tomcat 9.0.20. Both of them run on localhost but on ...
Luis Eduardo Cruz Caballero's user avatar
2 votes
0 answers
263 views

GeoServer vector tiles (.pbf) wont display due to CORS issue [duplicate]

I am using Mapbox Gl JS to get mapbox vector tiles (pbf) from GeoServer 2.15, which I am running with Tomcat 8.5 on a Windows Server. The Mapbox GL JS javascript is in a folder in the Tomcat webapps ...
OG1_Mapper's user avatar
2 votes
1 answer
1k views

CORS issue loading an external local GeoJSON into OpenLlayers 5

I have a local folder on my network with my HTML file and two subfolders, one with the downloaded folder from OpenLayers (renamed ol) and the other with my GeoJSON file (data). When I try to load the ...
Ryan Norton's user avatar
1 vote
1 answer
4k views

CORS ERROR with own WMS GeoServer layers

I am building a weather application. For this I want to use OpenLayers as the base for my application and then I want to be able to add my own made layers from PostGIS with GeoServer to this ...
Trisha's user avatar
  • 125
3 votes
1 answer
3k views

Leaflet OSM Cross origin issue when zoom level > 19

I am playing around a bit with Leaflet and run into an issue. I am using the OSM tile service https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png. But I get CORS problem when I zoom in closer than ...
geogrow's user avatar
  • 1,683
3 votes
3 answers
6k views

Geoserver WMS - CORS enabled in web.xml - still error

I have tried both geoserver 2.12.5 and 2.13.2 with CORS enabled and on both i get an "Invalid CORS request" when accessing WMS from an external webapp. steps : install geoserver, port 8095, i ...
Nenad's user avatar
  • 51
2 votes
1 answer
3k views

Avoid CORS problems using javascript code loading layers in OpenLayers

I am putting together a basic proof of concept for a client using OpenLayers to compare against Esri Javascript. I understand that the medium to a long-term solution is to enable access on the server ...
KieronFlynn's user avatar
2 votes
1 answer
1k views

Geoserver won't start after setting up CORS (no jetty installed?)

I tried to enable CORS by uncommenting the necessary lines in the web.xml file of geoserver. However, I didn't know that I also had to make sure having the correct jetty servlets jar file in my WEB-...
JoeBe's user avatar
  • 1,230
2 votes
1 answer
1k views

How to access geoserver web services on a backend server through openlayers web application hosted on another server via IIS?

I am struggling with how to access geoserver web services in my openlayers application. I setup a test machine that hosted both geoserver and the openlayers app as well as a postgres database to ...
kflaw's user avatar
  • 1,416
3 votes
0 answers
1k views

Unable to enable CORS in geoserver

I am running a Geoserver2.12 with tomcat7 in a container. I am trying to enable CORS inside the web.xml file of my geoserver installation but whenever I add these lines in the file: <filter> &...
user1919's user avatar
  • 2,654
1 vote
0 answers
981 views

Enabling CORS in GeoServer propulsed by docker:jetty [closed]

I am trying to enable CORS in a docker/jetty context for Geoserver. I modified the geoserver Dockefile as follows : First i used a very simple regexp to insert in /usr/local/jetty/etc/webdefault.xml ...
MaxiReglisse's user avatar
3 votes
3 answers
441 views

Carto SQL fails due to CORS error in local CartoDB?

I have successfully installed CartoDB in Ubuntu 14.04 LTS and uploaded a point geometry dataset. I have created a HTML/JS application to access the layers from the local cartodb and visualize in the ...
Dinesh's user avatar
  • 167
0 votes
0 answers
200 views

CORS error when try to display layer from remote geoserver [duplicate]

I am following this tutorial in order to add vector tiles using geoserver and OL3. I am using some layer from a remote geoserver which I have access: var layer = 'myworkspace:arm_trs_roads_osm'; var ...
user1919's user avatar
  • 2,654
6 votes
2 answers
877 views

Geoserver WPS - CORS Problem

I'm working with Geoserver 2.12.1 (Windows Installer Version) and I had to enable CORS before for getting access when I attempted to do a GetFeatureInfo. I did the steps to enable CORS: Edit webapps/...
Maria Jose Gonzalez Legidos's user avatar
0 votes
0 answers
441 views

Why is loading specific WMS giving me CORS error, while others work

A client wants to dynamically add and remove WMS Layers to a web application from a governmental source. The code to do this is a simple as it can get: //layerObj has a property id, that contains ...
Marco's user avatar
  • 147
0 votes
1 answer
928 views

Uploading files to local Geoprocessing service

I am trying to upload csv file to geoprocessing service, everything works fine if I replaced the URL and uploaded the file to any GP service published by ESRI but when I try to upload to my local GP ...
Omar Elhadi's user avatar
0 votes
1 answer
1k views

Enabling CORS in GeoServer 2.8.2 or how to use JSONP in GeoServer?

I want to identify number of layers in to workspace in GeoServer for that I am using below REST API: http://admin:geoserver@localhost:8080/geoserver/rest/workspaces/gisc/featuretypes.json?callback=? ...
rakesh modi's user avatar
2 votes
0 answers
861 views

ArcGIS JavaScript API: SEC7127: Redirect was blocked for CORS request after submitting geoprocessing job

Using the ArcGIS for JavaScript API 3.19, I'm submitting a job to the ExtractData geoprocessing service at: https://analysis7.arcgis.com/arcgis/rest/services/tasks/GPServer/ExtractData/submitJob The ...
Jonathan Bailey's user avatar
6 votes
2 answers
6k views

Can't access GeoServer after CORS filter [duplicate]

To enable CORS filter I added the following in web.xml file in webapps/Geoserver/WEB-INF <filter> <filter-name>cross-origin</filter-name> <filter-class>org.eclipse.jetty....
Senthil S's user avatar
  • 125
1 vote
0 answers
271 views

CORS issue with OpenLayers3 getGetFeatureInfoUrl [duplicate]

In an Angular directive I'm trying to create an Information tool with OpenLayers 3 using the getGetFeatureInfoUrl method. I've set up a function which is using $http to return the info as JSON: //...
Robert's user avatar
  • 125
0 votes
1 answer
509 views

OpenGeo Suite 4.8 - service unavailable after enable CORS edits and restart (Jetty) [closed]

I have Open Geo Suite 4.8 installed on a server. I tried to enable CORS by following the guide given here. I have the jetty-servlets file in the directory given in the Boundless instructions. After ...
JasonBK's user avatar
  • 610
1 vote
1 answer
717 views

ArcGIS API for JavaScript - Featurelayer problem with CORS

I created simple simple web site: require([ "esri/map", "esri/config", "esri/dijit/InfoWindowLite", "esri/InfoTemplate", "dojo/dom-construct", "dojo/...
Martin Zápotocký's user avatar
29 votes
5 answers
45k views

Enabling CORS in GeoServer (jetty)?

I hope somebody has already figured this one out. I just installed Geoserver 2.9 on a vanilla Ubuntu 16.04 distro. The Geoserver 2.8 method of enabling CORS with the shanbe.hezoun class does no longer ...
Dennis Bauszus's user avatar