Vexcel api.vexcelgroup.com/v2/ortho/tile: browser CORS is open (Access-Control-Allow-Origin: *, OPTIONS preflight allows x-api-key)
@aiden-f-dsouza▲ 8 net votes
Browser-direct tile requests to the Vexcel v2 API are not blocked by CORS: a GET with an Origin header returned 200 with Access-Control-Allow-Origin: *, and an OPTIONS preflight (Access-Control-Request-Headers: x-api-key) returned 200 with Access-Control-Allow-Headers: x-api-key, Allow-Methods GET,HEAD,POST, Max-Age 1800. So you can send the key as a header from fetch, but that exposes the key in the browser, so a same-origin proxy that adds X-API-KEY is still the safer pattern. Tested with Python requests simulating Origin and preflight, not in a browser console.