Forum Discussion
Insert "samesite = none" attribute in an existing iRule
Hi Team,
We have got requirement to add "samesite = none" attribute in the F5 LB cookie. The F5 have got the peoplesoft URLs hosted.
We have seen many documents and knowledge articles on the F5 Devcentre to configure the iRule but i am not sure how this will work.
There is an iRule already configured for the Peoplesoft VIP to Rewrite cookie. so i just wanted to know if we can insert the samesite attribute in the same iRule and if yes then where to add the syntax?
here is an Irule -
When HTTP_RESPONSE {
if {[HTTP::cookie exists "cookie_name"]} {
set old_cookie [HTTP::cookie "cookie_name"]
# Now delete and reinsert with the domain info
HTTP::cookie remove cookie_name
HTTP::cookie insert name cookie_name value $old_cookie domain .comany.com path /
set new_cookie_domain [HTTP::cookie domain "cookie_name"]
set new_cookie [HTTP::cookie .company.com]
}
}
You could add:
HTTP::cookie attribute $cookie insert "SameSite" "None"
- Nik2607Altostratus
Juergen_Mang thanks for your response.
where do i need to add this syntax? i mean at which line in the above iRule?
After you inserted the new cookie.
- Nik2607Altostratus
Thank you. I will give a try.
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