I am invoking a POST request (say request A) from my browser. And I’m trying to do the following at my backend while redirecting the request,
1) Clear a cookie value
2) Set 307 header value and
3) Adding Location header with redirect url (say request B) value.
(2) and (3) works fine.
(1) is not working as expected. When the request B is invoked the cookie value is not cleared - it reuses the value in request A. Can someone provide me some insight on this?