http-server icon indicating copy to clipboard operation
http-server copied to clipboard

Add support for 'Access-Control-Expose-Headers' using --cors

Open J-Rojas opened this issue 6 years ago • 3 comments

When using XHR requests, only certain default headers are approved for access. The 'Access-Control-Expose-Headers' cors header allows the XHR requests to read additional headers outside of this default list. It would be helpful to add support for this by adding the entire list of cors headers supplied in the configuration parameter to this response header.

https://github.com/mozilla/pdf.js/issues/3150#issuecomment-17582371 https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers

J-Rojas avatar Jul 19 '19 02:07 J-Rojas

This issue has been inactive for 180 days

github-actions[bot] avatar Aug 20 '21 12:08 github-actions[bot]

This issue has been inactive for 180 days

github-actions[bot] avatar Feb 17 '22 12:02 github-actions[bot]

Hi, any update on this issue? I would recommend that Accept-Ranges should be included in the exposed headers.

jtbandes avatar Mar 21 '22 20:03 jtbandes