HTTP JavaScript directives

js_header_filter (http-js)

Selects a synchronous response header filter.

Formal Syntax & Structure

nginx syntaxnginx
js_header_filter module.function;

Parameters & Attributes

NameTypeDescription
handlermodule.functionSynchronous response header transformation; preserve framing and security semantics.

Working Example

Example Snippetnginx
js_header_filter app.headers;
Nginx Reference