Skip to content

http.request.cookies

http.request.cookies Map<Array<String>>

The Cookie HTTP header associated with a request represented as a Map (associative array).

Requires a Cloudflare Pro, Business, or Enterprise plan.

The cookie names are URL decoded. If two cookies have the same name after decoding, their value arrays are merged.

The cookie values are not pre-processed and retain the original case used in the request.

Example value:

{ "app": ["test"] }

Example usage:

any(http.request.cookies["app"][*] == "test")
Categories:
  • Request
  • Headers