Page MenuHomePhabricator

Add Access-Control-Expose-Headers header in response to allow access to ETag
Closed, ResolvedPublic

Description

From http://stackoverflow.com/questions/21345814/etag-header-not-returned-from-jquery-ajax-cross-origin-xhr:

The ETag header present in cross-origin responses will not be accessible to client-side code unless the server includes an Access-Control-Expose-Headers header in its response, with a value of "ETag". This is true of any "non-simple" response headers.

See also: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS