KB: 00002002

How to mark all server origin cookies as Secure

Problem Statement

The client requires to mark all the server origin cookies as Secure

Solution

Steps to Solve

The client can achieve the requirement by creating the header rule as mentioned below

  1. Login into Haltdos console

  2. Go to Stack->SLB(APP.)->Listner->Rules->Header Rule

  3. Now create header rule by entering the information mentioned below

  • Header Name: set-cookie

  • Pattern: ^((?:.(?!\ [Ss]ecure))*)$

  • Header Value: \1;\ Secure

  • Action: Overwrite Response Header

  • Conditions: NA

5. Click on Save Changes for saving the rule

The above image shows creation of header rule with overwriting the response header.

Last updated

Was this helpful?