Skip to content

headers

headers sets or deletes request and response headers.

yaml
server:
  http:
    middlewares:
      proxy_headers:
        headers:
          custom_request_headers:
            X-Forwarded-Prefix: /api
          custom_response_headers:
            X-Frame-Options: DENY
FieldDescription
custom_request_headersHeaders applied to the request before the next middleware.
custom_response_headersHeaders applied to the response before the next middleware.

Set a header value to an empty string to delete that header.