Skip to content

Add CORS Proxy #47

@pjdufour

Description

@pjdufour

Add simple configuration block to the default NGINX server to add additional proxy for /cors to /geoserver that adds

Access-Control-Allow-Origin: *`

but doesn't interfere with direct /geoserver calls. Needed for cross-orgin GeoJSON WFS requests.

For example, from:

http://example.com/geoserver/wfs?srsName=EPSG%3A4326&typename=geonode%3Aexamplelayer&outputFormat=json&version=1.0.0&service=WFS&request=GetFeature

to

http://example.com/cors/geoserver/wfs?srsName=EPSG%3A4326&typename=geonode%3Aexamplelayer&outputFormat=json&version=1.0.0&service=WFS&request=GetFeature

Implementation from http://enable-cors.org/server_nginx.html or something like that. Maybe just HTTP GET.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions