Add Access-Control-Expose-Headers field constant:

This response header is described both in [CORS](https://www.w3.org/TR/cors/)
and [Fetch](https://fetch.spec.whatwg.org/) specifications.
This commit is contained in:
Ivan Vilata-i-Balaguer
2018-03-09 09:29:14 -08:00
committed by Vinnie Falco
parent c984f6c94d
commit edd162cf3b
5 changed files with 7 additions and 1 deletions
+1
View File
@@ -38,6 +38,7 @@ enum class field : unsigned short
access_control_allow_headers,
access_control_allow_methods,
access_control_allow_origin,
access_control_expose_headers,
access_control_max_age,
access_control_request_headers,
access_control_request_method,
+2 -1
View File
@@ -26,7 +26,7 @@ namespace detail {
struct field_table
{
using array_type =
std::array<string_view, 352>;
std::array<string_view, 353>;
struct hash
{
@@ -104,6 +104,7 @@ struct field_table
"Access-Control-Allow-Headers",
"Access-Control-Allow-Methods",
"Access-Control-Allow-Origin",
"Access-Control-Expose-Headers",
"Access-Control-Max-Age",
"Access-Control-Request-Headers",
"Access-Control-Request-Method",