I am using traefik , we have Ouath2-porxy , ping federate and traefik in place.
when the user tries to logout to the application it is not being able to logout as the cookies / sessions are not being cleared .
we have nginx in the production it when i curl the endpoint it shows
curl -k -I https://raven.abc.com/NGFS
HTTP/2 302
date: Mon, 26 Jan 2026 01:45:42 GMT
content-type: text/html
content-length: 138
location: https://raven.abc.com/oauth2/start?rd=%2FNGFS
But when when i curl same in stage cluster which have traefik controller.
HTTP/2 302
cache-control: no-cache, no-store, must-revalidate, max-age=0
content-type: text/html; charset=utf-8
date: Mon, 26 Jan 2026 01:59:24 GMT
expires: Thu, 01 Jan 1970 00:00:00 UTC
location: https://idpstage.abc.com/as/authorization.oauth2?approval_prompt=force&client_id=NetPlnFcst-7127481-stage-hpSRY&redirect_uri=https%3A%2F%2Fraven.uat.aa.com%2Foauth2%2Fcallback&response_type=code&scope=openid+profile+email&state=PN-NWS6K86kjFaVFMnD-9F-Cusnyud0w%3Ahttps%3A%2F%2Fraven.uat.abc.com%2FNGFS
set-cookie: raven_uat_oauth_PN-NWS6K_csrf=U7D8q08MCIhkTk0msRrmuR3MR1DiKKlNEv8uantph5aI2d-QAT9Hfo6vb--BfjctEuyVLVsKAfIIHgljYpeuHf09gHYooegN9xbBAo=|1769392764|jrpC2X2hoAJh6YGqmc1a4x_0x00aCmWe7s_7uF8zVEg=; Path=/; Domain=raven.uat.abc.com; Max-Age=900; HttpOnly; Secure
x-accel-expires: 0
content-length: 353
i researched on this copilot is saying that traefik is injecting csrf and session cookies which are not being cleared it sees its own valid cookies and automatically logs back me in the application. can any one guide it what is the issue as it was working fine with nginx i was able to logout successfully