9. Misc

setCookies

Version

Adds one or more Set-Cookie headers to the HTTP response for session handling, user preferences, or tracking purposes. Supports computing expiry, setting standard attributes like Domain and Path, and building a compliant cookie string. Useful for enriching responses with configurable cookies directly at gateway level without backend involvement.
api:
port: 2000
flow:
- response:
- setCookies:
- name: SESSION
value: akj34
api:
   port: 2000
   flow:
     - response:
         - setCookies:
             - name: SESSION
               value: akj34

Syntax

setCookies:
- <cookie>
setCookies:
  - <cookie>

Can be used in