Skip to content

Instantly share code, notes, and snippets.

@akadata
Forked from meineerde/haproxy.config
Created December 14, 2018 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akadata/14a75522b524308d7eefc5a757aceefe to your computer and use it in GitHub Desktop.
Save akadata/14a75522b524308d7eefc5a757aceefe 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