Skip to content

Request Header Transform rule - validation error when declaring http.cookie["cookie_name"] #25478

@hochoy

Description

@hochoy

Example URL(s)

https://developers.cloudflare.com/workers/static-assets/routing/advanced/gradual-rollouts/#session-based-affinity

According to the instructions, we should be able to use the Transform rule to parse a specific key-value pair in http.cookie. However, it is throwing a value expression validation error.

Actual Behavior

'http.cookie["session_id"]' is not a valid value for expression because could not parse filter value expression: Filter parsing error (1:12): http.cookie["session_id"] ^^^^^^^^^^^^^^ cannot access index MapKey("session_id") for type Bytes
Image

Expected Behavior

Image

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions