NeotomaDB / Neotoma-API

A Placeholder for the Neotoma API
3 stars 1 forks source link

Expose additional headers on responses #14

Open scottsfarley93 opened 7 years ago

scottsfarley93 commented 7 years ago

When making cross domain requests, the client is only allowed to read simple response headers (cache-control, expires, content-type, last-modified). Other headers are prohibited from being read for security reasons.

Since many responses are large, it might be nice to place a download indicator on public facing pages. However, this cannot be done without the content-length value (so that percentages can be computed).

Therefore, I propose we enable reading of this header for all clients.

The appropriate parameter is ""Access-Control-Expose-Headers"