Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions routes/wfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,11 @@ export const registerWfsRoutes = ({
getQueryCI(req, 'VERSION') || getQueryCI(req, 'version'),
getQueryCI(req, 'ACCEPTVERSIONS') || getQueryCI(req, 'acceptversions')
);
// Prefer the API key from a request header (never logged/cached the way
// query strings are) and only fall back to query params for GIS clients
// (e.g. QGIS) that cannot send custom headers.
const reqApiKey = String(
req.headers['x-api-key'] ||
Comment on lines +794 to +798
getQueryCI(req, 'api_key') ||
getQueryCI(req, 'apikey') ||
getQueryCI(req, 'apiKey') ||
Expand Down