0Pricing
API Gateway & Reverse Proxy (Nginx + Spring Cloud Gateway) · Lesson

Built-in GatewayFilters You Should Know

Explore the most useful out-of-the-box GatewayFilter factories so you can solve common tasks without writing custom code.

Filters You Get for Free

Before writing custom filters, know that Spring Cloud Gateway ships with dozens of ready-made GatewayFilter factories. You attach them per route in configuration.

This lesson tours the ones you will reach for most often.

AddRequestHeader

AddRequestHeader injects a header into every request before it reaches the backend, useful for tagging traffic from the gateway.

filters:
  - AddRequestHeader=X-Source, gateway

All lessons in this course

  1. Global Filters & GatewayFilterFactory
  2. Custom Request/Response Filters
  3. Pre/Post Processing with Filters
  4. Built-in GatewayFilters You Should Know
← Back to API Gateway & Reverse Proxy (Nginx + Spring Cloud Gateway)