Skip to content

Instantly share code, notes, and snippets.

@kenshin17
Forked from meineerde/haproxy.config
Created January 21, 2021 06:39
Show Gist options
  • Save kenshin17/20c35c4023de83f971de9a9e1cd0b812 to your computer and use it in GitHub Desktop.
Save kenshin17/20c35c4023de83f971de9a9e1cd0b812 to your computer and use it in GitHub Desktop.
Set all cookies set in the HTTP response to HttpOnly
acl httponly_cookie res.hdr(Set-Cookie),lower -m sub httponly
rspirep ^(set-cookie:.*) \1;\ HttpOnly if !httponly_cookie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment