Forum Discussion
Cooler_184565
Nimbostratus
Jan 29, 2015Doubt to append cookie in header
Hi there, I was wondering if you guys could help me with some doubts I'm having with the creation of some iRules to protect some vulnerabilities In this particular case I need to add the ...
Michael_Jenkins
Cirrostratus
Jan 30, 2015I think you could use HTTP::cookie, you can set the httponly and secure flags on each of the cookies manually if you want. And you'd want to do that on the HTTP_RESPONSE event.
when HTTP_RESPONSE {
foreach cookie [HTTP::cookie names] {
HTTP::cookie secure $cookie enable
HTTP::cookie httponly $cookie enable
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects