Identifies NASA Earthdata URLs and routes them through a CORS-enabled proxy endpoint, enabling token-authenticated access to protected geospatial datasets.
// Source: https://github.com/opengeos/GeoLibre | License: MIT | Copyright 2026 Qiusheng Wu // Provided via justclaw.it.com; keep this notice with the code. // The Earthdata relay route, in a leaf module with no imports so the host can // load it at boot (earthdata-fetch-auth.ts) without pulling in the plugin. /** * GeoLibre's tiles Worker route that streams a protected Earthdata file with * CORS (`workers/tiles/src/earthdata.ts`). The DAACs send no CORS headers, so * the browser build downloads through it, and COG map layers on every build * read through it: the layer keeps this token-free URL, and the host adds the * Earthdata Login token to requests under it (`earthdata-fetch-auth.ts`). */ export const EARTHDATA_PROXY_ENDPOINT = "https://tiles.geolibre.app/earthdata/download"; / ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key