I'm working on a project using nginx as reverse proxy and I'm trying to intercept a response from a specific location in order to extract a cookie and save it in a database.
I'm able to listen a location and verify the validity of a token added as a header. I'm using Java to handle this. SO what I'm trying to do now is to intercept the response and extract a specific cookie. Otherwise extracting only the cookie without intercepting the response.
Thank for your help.