Transform Rules - Response Header New Action "Add"

Hi Everyone,

I am excited to announce that Cloudflare Transform Rules now allow you to “Add” a HTTP Response Header that does not remove/overwrite existing matching Response Header values.

A common use case for this is to set-cookie headers. Within Transform Rules, customers using the ‘Set’ operations and the Header Name ‘set-cookie’ would remove any cookies being applied from the Origin or Cloudflare features. Returning only those set within the Transform Rules rule to the end user.

Today, you can now simply select the Add option when configuring a Response Header in the Cloudflare dashboard (or using the API). This will allow you to add a Static defined response header without overwriting any existing values.

For example:

You can now see all existing set-cookie headers from the Origin and Cloudflare are left intact with the addition of the Added Transform Rules cookie.

Thanks,

Matt

4 Likes