Open-EO / openeo-earthengine-driver

openEO back-end driver for Google Earth Engine.
Apache License 2.0
21 stars 7 forks source link

Custom headers are not available in browsers (CORS issue) #14

Closed christophfriedrich closed 5 years ago

christophfriedrich commented 5 years ago

Browsers allow JS code to only access some standard headers like Content-Type. Custom ones must be explicitly allowed using the Access-Control-Expose-Headers header. This is missing for e.g. POST /process_graphs, where the JS client needs to read the OpenEO-Identifier header.

Reference: https://stackoverflow.com/a/37931084/3746543