Forum Discussion
'SameSite=strict' attribute to cookies
Trying to find the correct irule script to set 'SameSite=strict' attribute to cookies. I have not found anything that will do this yet in an iurle anyone have any ideas?
- HoolioRet. Employee
Here's an iRule that will set SameSite on cookies that the web app or BIG-IP modules set via the Set-Cookie header:
https://devcentral.f5.com/s/articles/iRule-to-set-SameSite-for-compatible-clients-and-remove-it-for-incompatible-clients-LTM-ASM-APM
Aaron
- Simon_BlakelyEmployee
You can use the
HTTP::cookie attribute <cookie name> insert <attribute> <value>
e.g.
HTTP::cookie attribute mycookie insert " Samesite" strict
Note the leading space before the attribute name - this is due to
Recent Discussions
Related Content
* 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