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
0answers
35 views

esriRequest error No 'Access-Control-Allow-Origin' header is present on the requested resource

I have an API that uses Basic Authentication (Username, Password). I am trying to use this in an esriRequest to pull back the JSON data object from the GET request. To test this (and potentially avoid ...
2
votes
0answers
17 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 ...
1
vote
0answers
49 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 ...
1
vote
0answers
35 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 ...
0
votes
0answers
20 views

QGIS2Threejs is any way to load QGIS2Threejs page without having to built it in a webserver?

The Google Chrome I have installed supports WebGL. The related error is the following. three.min.js:645 Access to XMLHttpRequest at 'file:///D:/WebDTM/data/index/scene.json' from origin 'null' has ...
1
vote
1answer
139 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
538 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 ...
2
votes
1answer
760 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
659 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
621 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 ...
1
vote
1answer
355 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-...
1
vote
1answer
226 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 ...
1
vote
0answers
731 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
368 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 ...
2
votes
2answers
190 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
91 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 ...
4
votes
0answers
370 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
172 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
392 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
425 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
718 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 ...
5
votes
2answers
2k 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
194 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
415 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
437 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/...
16
votes
5answers
15k 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 ...
5
votes
2answers
11k 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
618 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
118 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 ...
1
vote
1answer
1k 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
151 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
860 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
92 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
2k 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
782 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 ...
6
votes
1answer
6k 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
4k 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 ...
1
vote
0answers
702 views

Same Origin Policy Problem using WFS-T with Geoserver & OpenLayers 3

I'm trying to use a WFS-T Service to insert a simple Point from OpenLayers 3 into Geoserver in a VirtualBox (test environment). There is always the same error message: Failed to load resource: ...
3
votes
1answer
947 views

CORS Printing Issue with ArcGIS Javascript

I'm developing an application using the ArcGIS Javascript API and everything has been working fine until I've tried to incorporate the print widget using printtask. When only the base layers are ...
1
vote
0answers
2k views

Access-Control-Allow-Origin problem when loading json file from Amazon S3 to display in OpenLayers

This is my code for displaying geojson in OpenLayers, where "geourl" is directed to a json file in Amazon S3. geojson_layer = new OpenLayers.Layer.Vector("GeoJSON", { strategies: [new OpenLayers....
3
votes
1answer
7k views

How to CORS enable ArcGIS Server 10.2.1 to Access REST Services without Using proxy.ashx?

Form the ENABLE-CORS.ORG I see that editing web.config is enough to CORS enable IIS7 <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <httpProtocol&...
4
votes
1answer
6k views

How to use Cross Origin Resource Sharing (CORS) from ArcGIS API Javascript Application?

I am getting the CORS error XMLHttpRequest cannot load http://services.arcgisonline.com/ArcGIS/rest/info?f=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. ...
4
votes
3answers
3k views

ESRI proxy page not working properly + CORS + cross domain scripting

I have set up a proxy page. I am using JSP version of proxy page. I have set up a server URL which will point to my Java. When I load the my page which the proxy URL has set in its html it will work ...
3
votes
3answers
6k views

CORS for XHR in IE10

I am getting these errors when someone attempts to open my app in IE. I get a popup asking to Allow Blocked Content, and when this is clicked everything works fine. Is there anyway I can go about ...