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
57
questions
0
votes
1answer
27 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 ...
0
votes
0answers
38 views
CORS Policy issue with ESRI WFS Services
I am getting the below CORS policy issue when I am trying to load a simple WFS Feature Service using Esri/WFSLayer using https://js.arcgis.com/3.27/
Access to XMLHttpRequest at
'https://ons-inspire....
0
votes
3answers
83 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 ...
1
vote
1answer
70 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 ...
1
vote
1answer
199 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 ...
0
votes
1answer
14 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.
1
vote
1answer
293 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 ...
0
votes
0answers
12 views
CORS policy issues in .Net Core
So I have a .net core app which currently throws an error in console saying:
Access to XMLHttpRequest at 'https://app.test.mk/arcgis/rest/services/karpos/Karpos_Vector_Izvodi/MapServer?f=json&dpi=...
0
votes
0answers
54 views
Use of Wikimapia API on my site
I'm trying to figure out the half-dead resource Wikimapia, which, unfortunately, is very popular in Russia and contains vernacular data of cities.
The goal is a map on a modern and flexible Mapbox, ...
3
votes
0answers
351 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 ...
1
vote
0answers
32 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 ...
2
votes
1answer
287 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 '...
2
votes
1answer
783 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:...
0
votes
0answers
935 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" --...
2
votes
0answers
32 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 ...
2
votes
0answers
159 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 ...
2
votes
0answers
128 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 ...
1
vote
1answer
475 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 ...
0
votes
1answer
2k 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 ...
3
votes
1answer
2k 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 ...
1
vote
2answers
2k 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 ...
2
votes
1answer
2k 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 ...
2
votes
1answer
821 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-...
2
votes
1answer
475 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 ...
3
votes
0answers
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>
&...
1
vote
0answers
551 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 ...
3
votes
3answers
322 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 ...
0
votes
0answers
175 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 ...
5
votes
1answer
481 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/...
0
votes
0answers
268 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 ...
0
votes
1answer
554 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 ...
0
votes
1answer
612 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=?
...
2
votes
0answers
804 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 ...
6
votes
2answers
3k 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....
1
vote
0answers
249 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:
//...
0
votes
1answer
447 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 ...
1
vote
1answer
580 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/...
24
votes
5answers
26k 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 ...
7
votes
2answers
17k 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 ...
-1
votes
1answer
679 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 ...
1
vote
0answers
135 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 ...
3
votes
1answer
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&...
1
vote
0answers
173 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 ...
3
votes
1answer
1k 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>...
0
votes
1answer
94 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 ...
6
votes
1answer
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 (...
1
vote
0answers
885 views
Geoserver GetCapabilities and CORS [duplicate]
Using WMS I do a GetCapabilities request on a GeoServer instance.
This works in FireFox, but not in Chrome, Safari, and Internet Explorer.
The point is that in the web.xml from the server I did add:
...
1
vote
0answers
1k views
Cross Origin Request Blocked [duplicate]
My Gis Client Program, using OpenLayers, and my GeoServer were running on the same server, everything worked fine.
Now, I started a new instance of My Gis Client Program on another server. There, I ...
7
votes
1answer
7k views
WMS server with CORS enabled?
Consider this question here. Many servers do not set CORS headers correctly. As I recover here, even esri does not do so, but bing does.
That begs for the question, what are some WMS servers that ...
6
votes
4answers
5k views
geoserver xml header for cors xmlhttprequest [duplicate]
I'm running geoserver-2.5.2. From an external server i would like to call it as a wfs source with ol3. For this I would like to allow this external server to access the data. It seams I need a header ...