Get Cookie After Login


I would like to get a cookie after logging into an app where I don’t have an api, just a login form.

Using Postman or Insomnia I can login and get the cookie successfully, I really tried it in every way, of course I’m using node Http Requests, read in other questions that say to enable the Full Response option to true, but not yet I can choose the cookie in the headers.

My goal is to use the cookie to perform an update on the next node.

See my response headers after submit

Welcome to the community @Edson_Rodrigues

Can you try without the redirect?

Hi Ricardo,

N8n is very nice, congratulation the community. I am appreciation.

When I set the redirect false I can get the cookie but as it gives the error “object moved” due to the app redirecting to the dashboard after login I can’t run the workflow.


Hey @Edson_Rodrigues!

Welcome to the community :sparkling_heart:

Apart from the cookie, do you need anything else in the next nodes of your workflow? Since this HTTP Request node is not giving an error, it is simply returning the body of the webpage, the next node in your workflow should get executed.


Follow all redirects is set to true, my workflow is working, but I can’t get cookie in the next node due to the redirect.

Follow all redirects is set to false, my workflow doesn’t work, but I can see the cookie is in the headers, but I can’t get it next node, because the workflow stops.

Hey @Edson_Rodrigues,

Thank you for sharing the information. With the previous screenshot, I thought you were getting a successful output. I am not sure how this can be handled. Can you share the workflow via DM? It will help me replicate the issue


Thank you for your help.
Now I can run my workflow by setting Ignore Response to true.
When I get the object moved error the workflow runs successfully.

Success work.

1 Like

Thank you for sharing the solution! I am sure this will other members as well :slight_smile: