Skip to main content
Version: v6

kb-2003

How to mark all server origin cookies as SameSites?​

Problem Statement​

The client requires to mark all the server origin cookies as SameSite.

Solution​

Steps to Solve

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

  1. Login into Haltdos console

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

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

  • Header Name: Set-cookie

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

  • Header Value: \1;\ SameSite=none

  • Action: Overwrite Response Header

  • Conditions: NA

  1. Click on save changes for saving the rule

header

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