diff --git a/docs/api/environment-variables.md b/docs/api/environment-variables.md index 16797bfd9544..1a445a13e677 100644 --- a/docs/api/environment-variables.md +++ b/docs/api/environment-variables.md @@ -48,6 +48,7 @@ Unsupported options are: ```sh --max-http-header-size +--http-parser ``` ### `GOOGLE_API_KEY` diff --git a/shell/common/node_bindings.cc b/shell/common/node_bindings.cc index ebc9725a96a4..57a3de0c2651 100644 --- a/shell/common/node_bindings.cc +++ b/shell/common/node_bindings.cc @@ -144,7 +144,8 @@ void SetNodeOptions(base::Environment* env) { "--force-fips", "--enable-fips"}; // Subset of options allowed in packaged apps - const std::set allowed_in_packaged = {"--max-http-header-size"}; + const std::set allowed_in_packaged = {"--max-http-header-size", + "--http-parser"}; if (env->HasVar("NODE_OPTIONS")) { std::string options;