Dmitriy_Tiper
Jun 14, 2024Altocumulus
Cookie insert via http:redirect - can it be configured "secure"?
Using slightly changed example from DevCentral I am able to insert cookie on http redirect
when CLIENT_ACCEPTED {
set cookie [format "orig_lang=french; path=/; domain=client.com"]
}
when HTTP_REQUEST {
if { [HTTP::host] equals "web1.client.com" }
{
# Redirect to the requested host and URI (minus the port if specified)
HTTP::respond 302 Location "https://web2.client.com" "Set-Cookie" $cookie
}
}
Is it possible configure secure and httponly on that cookie?
Thank you in advance.