Skip to content

Akamai EdgeWorker script to 'harden' set-cookie headers coming from Origin

Notifications You must be signed in to change notification settings

jjgrinwis/harden-cookies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harden my cookies

An example Akamai EdgeWorker script to harden the 'Set-Cookie' header(s) coming from Origin.
This Akamai EdgeWorker script, created by a couple of Dutch Akamai SE's, will run on the onClientResponse() event: image It's also possible to run this on the onOriginResponse() event but some advanced metadata is needed to forward the Set-Cookie header(s).

This script will use the Set-Cookie header(s) from origin and will set the following attributes:

  • Secure
  • HttpOnly
  • SameSite=Strict

This/these new SetCookie object(s) will be added to the Response Object and forwarded to the client.

About

Akamai EdgeWorker script to 'harden' set-cookie headers coming from Origin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published