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
0 answers
31 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: { ...
user avatar
0 votes
0 answers
83 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-...
user avatar
3 votes
1 answer
678 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 ...
user avatar
  • 20.6k
1 vote
0 answers
219 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 ...
user avatar
  • 20.6k
0 votes
0 answers
59 views

Find out message type of a RTCM3 message

Given a byte stream of an RTCM3 message, is there a way to find out the message type of that message? I've read that a RTCM3 message header starts with a 0xD3 byte but I can't find out if the message ...
user avatar
0 votes
1 answer
200 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 ...
user avatar
3 votes
0 answers
502 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 ...
user avatar
0 votes
1 answer
232 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 ...
user avatar
  • 577
0 votes
3 answers
182 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 ...
user avatar
2 votes
1 answer
920 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 ...
user avatar
3 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
39 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.
user avatar
  • 13
1 vote
1 answer
2k 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 ...
user avatar
3 votes
1 answer
761 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 ...
user avatar
1 vote
0 answers
65 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 ...
user avatar
  • 313
2 votes
1 answer
544 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 '...
user avatar
3 votes
1 answer
2k 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:...
user avatar
  • 555
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" --...
user avatar
2 votes
0 answers
38 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 ...
user avatar
  • 21
2 votes
0 answers
272 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 ...
user avatar
2 votes
0 answers
261 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 ...
user avatar
1 vote
1 answer
816 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 ...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
  • 75
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 ...
user avatar
  • 1,603
2 votes
2 answers
3k 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 ...
user avatar
  • 41
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 ...
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-...
user avatar
  • 1,170
2 votes
1 answer
734 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 ...
user avatar
  • 1,386
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> &...
user avatar
  • 2,534
1 vote
0 answers
703 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 ...
user avatar
3 votes
3 answers
384 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 ...
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 ...
user avatar
  • 2,534
6 votes
2 answers
662 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/...
user avatar
0 votes
0 answers
349 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 ...
user avatar
  • 147
0 votes
1 answer
715 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 ...
user avatar
0 votes
1 answer
811 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=? ...
user avatar
2 votes
0 answers
825 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 ...
user avatar
6 votes
2 answers
4k 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....
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: //...
user avatar
  • 125
0 votes
1 answer
472 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 ...
user avatar
  • 580
1 vote
1 answer
664 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/...
user avatar
29 votes
5 answers
35k 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 ...
user avatar
8 votes
2 answers
22k views

Avoiding CORS error with OpenLayers 3?

The CORS error seen is: Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported All this doesn't work: OpenLayers 3: Cross-Origin ...
user avatar
  • 1,906
-1 votes
1 answer
742 views

Enabling CORS filter in Tomcat 7

I am trying to access a WMS layer from GeoServer installed locally and adding to my Cesium JavaScript application. WMS layer was not being added. I just found from search that it may be due to CORS ...
user avatar
  • 2,886
1 vote
0 answers
148 views

Is disabling CORS on map tiles service security risk?

I would like to know what security issues or security risk would prevent disabling Cross-Origin Resource Sharing (CORS) on map tiles service. Most of public tiles services, such OSM, Google, Bing or ...
user avatar
3 votes
1 answer
2k views

Using MapProxy to get around the OpenLayers 3 WebGL cross-origin issue when loading third party tiles

I have a very simple OpenLayers 3 map which draws nothing but a base layer from a third party tile source using the WebGL renderer: ol3.html: <!doctype html> <html lang="en"> <head&...
user avatar
  • 1,719
1 vote
0 answers
196 views

cross domain problem in geodjango for openlayers in django development server

I want to display geojson data on map in geodjango. Below is my code template/map.html (javascript code). only the map is loading but not the geojson data. Whwn I used debugger the url is gettin ...
user avatar
  • 489
3 votes
1 answer
2k views

reverse proxy on geoserver

I have installed the new Geoserver 2.8.0 and to avoid CORS related errors I wanted to implement a reverse proxy, instead of setting response headers. In version 2.1.3 there was a <filter-name>...
user avatar
  • 1,109
0 votes
1 answer
100 views

Cartodb not loading layers on IE8-10 on longer requests

Check the demo here: http://unirazz.com/cartodb/cartodb1.html After map is loaded, click on GO button to load cartodb layers. It works in latest browsers excepts IE8-10. If I reduce the length of ...
user avatar
  • 125
6 votes
1 answer
3k views

ArcGIS Server 10.3.1, Web Adaptor and Windows Authentication

This is probably a long shot but here it is. We have ArcGIS Server 10.3.1 installed and a simple map service deployed on it. We are accessing the map service via custom javascript/html applications (...
user avatar