I am trying to implement a Xero Webhook in my Ruby on Rails application. However, the Xero documentation says that the response should not contain any cookie. Hence, I am trying to find a way to remove all the cookies from the response, but I have no luck. There is always a cookie with name _rails-devise_session
which is the cookie to support sessions.
How can I have this cookie removed (or not present in the first place) but only for the specific end-point that serves the Xero Webhook?